Download src/php/php-src/ext/gd/tests/bug39508.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug39508.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gd/tests/bug39508.phpt
-
curl -L -o bug39508.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug39508.phpt
282 Bytes
| --TEST-- | |
| Bug #39508 (imagefill crashes with small images 3 pixels or less) | |
| --EXTENSIONS-- | |
| gd | |
| --FILE-- | |
| $im = imagecreatetruecolor(3,1); | |
| $bgcolor = imagecolorallocatealpha($im,255, 255, 0, 0); | |
| imagefill($im,0,0,$bgcolor); | |
| print_r(imagecolorat($im, 1,0)); | |
| --EXPECT-- | |
| 16776960 | |