Download src/php/php-src/ext/gd/tests/bug45799.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug45799.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gd/tests/bug45799.phpt
-
curl -L -o bug45799.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/tests/bug45799.phpt
331 Bytes
| --TEST-- | |
| Bug #45799 (imagepng() crashes on empty image). | |
| --EXTENSIONS-- | |
| gd | |
| --SKIPIF-- | |
| if (!(imagetypes() & IMG_PNG)) { | |
| die("skip No PNG support"); | |
| } | |
| --FILE-- | |
| $img = imagecreate(500,500); | |
| imagepng($img); | |
| imagedestroy($img); | |
| --EXPECTF-- | |
| Warning: imagepng(): gd-png error: no colors in palette%win %s on line %d | |