Download src/php/php-src/ext/gd/tests/bug42434.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 374 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug42434.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gd/tests/bug42434.phpt
-
curl -L -o bug42434.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug42434.phpt
374 Bytes
| --TEST-- | |
| Bug #42434 (ImageLine w/ antialias = 1px shorter) | |
| --EXTENSIONS-- | |
| gd | |
| --FILE-- | |
| $im = imagecreatetruecolor(10, 2); | |
| imagefilledrectangle($im, 0, 0, 10, 2, 0xFFFFFF); | |
| imageantialias($im, true); | |
| imageline($im, 0, 0, 10, 0, 0x000000); | |
| if (imagecolorat($im, 9, 0) == 0x000000) { | |
| echo 'DONE'; | |
| } else { | |
| echo 'Bugged'; | |
| } | |
| imagedestroy($im); | |
| --EXPECT-- | |
| DONE | |