Download src/php/php-src/ext/gd/tests/bug43121.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug43121.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gd/tests/bug43121.phpt
-
curl -L -o bug43121.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug43121.phpt
510 Bytes
| --TEST-- | |
| Bug #43121 (gdImageFill with IMG_COLOR_TILED crashes httpd) | |
| --EXTENSIONS-- | |
| gd | |
| --SKIPIF-- | |
| if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) { | |
| die("skip test requires GD 2.2.0 or higher"); | |
| } | |
| --FILE-- | |
| $im = ImageCreate( 200, 100 ); | |
| $black = ImageColorAllocate( $im, 0, 0, 0 ); | |
| $im_tile = ImageCreateFromGif(__DIR__ . "/bug43121.gif" ); | |
| ImageSetTile( $im, $im_tile ); | |
| ImageFill( $im, 0, 0, IMG_COLOR_TILED ); | |
| ImageDestroy( $im ); | |
| print "OK"; | |
| --EXPECT-- | |
| OK | |