php-src/ext/exif/tests/005.phpt
Marcus Boerger cda87f7509 Allow ifd start at offset other than 00000007h and provide testcase.
#Now we can read images modified by Exifer.
2002-10-19 09:52:00 +00:00

19 lines
448 B
PHP

--TEST--
Check for exif_read_data, unusual IFD start
--SKIPIF--
<?php if (!extension_loaded("exif")) print "skip";?>
--FILE--
<?php
/*
test5.jpg is a 1*1 image that contain an Exif section with ifd start at 00000009h
*/
$image = exif_read_data('./ext/exif/tests/test5.jpg','',true,false);
var_dump($image['IFD0']);
?>
--EXPECT--
array(2) {
["ImageDescription"]=>
string(11) "Ifd00000009"
["DateTime"]=>
string(19) "2002:10:18 20:06:00"
}