xref: /PHP-8.0/ext/exif/tests/bug72735/bug72735.phpt (revision f8d79582)
1--TEST--
2Bug #72735 (Samsung picture thumb not read (zero size))
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--FILE--
6<?php
7foreach (['nokia.jpg', 'samsung.jpg', 'panasonic.jpg'] as $picture) {
8    echo $picture . ': ';
9
10    $len = strlen(exif_thumbnail(__DIR__ . DIRECTORY_SEPARATOR . $picture));
11
12    if (!$len) {
13        echo 'Error, no length returned', PHP_EOL;
14
15        continue;
16    }
17
18    echo 'int(' . $len . ')', PHP_EOL;
19}
20?>
21--EXPECT--
22nokia.jpg: int(5899)
23samsung.jpg: int(5778)
24panasonic.jpg: int(651)
25