Download src/php/php-src/ext/gd/tests/bug28147.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug28147.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gd/tests/bug28147.phpt
-
curl -L -o bug28147.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug28147.phpt
435 Bytes
| --TEST-- | |
| Bug #28147 (Crash with anti-aliased line) | |
| --EXTENSIONS-- | |
| gd | |
| --FILE-- | |
| // | |
| // This script will generate a Seg Fault on Linux | |
| // | |
| $im = imagecreatetruecolor(300, 300); | |
| $w = imagecolorallocate($im, 255, 255, 255); | |
| $red = imagecolorallocate($im, 255, 0, 0); | |
| imagefilledrectangle($im,0,0,299,299,$w); | |
| imageantialias($im,true); | |
| imageline($im, 299, 299, 0, 299, $red); | |
| imagedestroy($im); | |
| echo "Alive\n"; | |
| --EXPECT-- | |
| Alive | |