Download src/php/php-src/ext/exif/tests/bug72735/bug72735.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/exif/tests/bug72735/bug72735.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/exif/tests/bug72735/bug72735.phpt
-
curl -L -o bug72735.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/exif/tests/bug72735/bug72735.phpt
492 Bytes
| --TEST-- | |
| Bug #72735 (Samsung picture thumb not read (zero size)) | |
| --EXTENSIONS-- | |
| exif | |
| --FILE-- | |
| foreach (['nokia.jpg', 'samsung.jpg', 'panasonic.jpg'] as $picture) { | |
| echo $picture . ': '; | |
| $len = strlen(exif_thumbnail(__DIR__ . DIRECTORY_SEPARATOR . $picture)); | |
| if (!$len) { | |
| echo 'Error, no length returned', PHP_EOL; | |
| continue; | |
| } | |
| echo 'int(' . $len . ')', PHP_EOL; | |
| } | |
| --EXPECT-- | |
| nokia.jpg: int(5899) | |
| samsung.jpg: int(5778) | |
| panasonic.jpg: int(651) | |