summaryrefslogtreecommitdiff
path: root/ext/exif/tests/bug72735/bug72735.phpt
blob: 082f3e6153a148bac57bfc149dea094a3a393422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Bug #72735 (Samsung picture thumb not read (zero size))
--SKIPIF--
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
--FILE--
<?php
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)