Download src/php/php-src/ext/exif/tests/bug64739.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/exif/tests/bug64739.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/exif/tests/bug64739.phpt
-
curl -L -o bug64739.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/exif/tests/bug64739.phpt
699 Bytes
| --TEST-- | |
| Bug #64739 (Invalid Title and Author data returned) | |
| --EXTENSIONS-- | |
| exif | |
| mbstring | |
| --FILE-- | |
| echo "Test\n"; | |
| $headers1 = exif_read_data(__DIR__ . '/bug64739.jpg'); | |
| if ($headers1 === false) { | |
| echo 'Error, failed to read exif data'; | |
| exit; | |
| } | |
| var_dump($headers1['Title'][0] === '?'); | |
| var_dump($headers1['Author'][0] === '?'); | |
| ini_set('exif.decode_unicode_motorola', 'UCS-2LE'); | |
| $headers2 = exif_read_data(__DIR__ . '/bug64739.jpg'); | |
| if ($headers2 === false) { | |
| echo 'Error, failed to read exif data'; | |
| exit; | |
| } | |
| var_dump($headers2['Title']); | |
| var_dump($headers2['Author']); | |
| Done | |
| --EXPECT-- | |
| Test | |
| bool(true) | |
| bool(true) | |
| string(8) "55845364" | |
| string(13) "100420.000000" | |
| Done | |