Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/gd/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/gd/tests/github_bug_215.phpt |
--TEST-- Github #215 (imagefilltoborder stack overflow when invalid pallete index used) --SKIPIF-- <?php if (!extension_loaded("gd")) die("skip GD not present"); if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.2', '<')) { die("skip test requires GD 2.2.2 or higher"); } ?> --FILE-- <?php $image = imagecreate( 10, 10 ); $bgd = imagecolorallocate( $image, 0, 0, 0 ); $border = imagecolorallocate( $image, 255, 0, 0 ); $fillcolor = imagecolorallocate( $image, 255, 0, 0 ); /* Use unallocated color index */ imagefilltoborder( $image, 0,0, $border+10, $fillcolor); echo "#1 passes\n"; /* Use negative color index */ imagefilltoborder( $image, 0,0, -$border, $fillcolor); echo "#2 passes\n"; /* Use unallocated color index */ imagefilltoborder( $image, 0,0, $border, $fillcolor+10); echo "#3 passes\n"; /* Use negative color index */ imagefilltoborder( $image, 0,0, $border, -$fillcolor); echo "#4 passes\n"; /* Use negative color index */ imagefilltoborder( $image, 0,0, $border+10, $fillcolor+10); echo "#5 passes"; ?> --EXPECT-- #1 passes #2 passes #3 passes #4 passes #5 passes
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare