summaryrefslogtreecommitdiff
path: root/ext/exif/tests/exif025.phpt
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2013-03-14 05:42:27 +0000
committer <>2013-04-03 16:25:08 +0000
commitc4dd7a1a684490673e25aaf4fabec5df138854c4 (patch)
tree4d57c44caae4480efff02b90b9be86f44bf25409 /ext/exif/tests/exif025.phpt
downloadphp2-master.tar.gz
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/exif/tests/exif025.phpt')
-rw-r--r--ext/exif/tests/exif025.phpt55
1 files changed, 55 insertions, 0 deletions
diff --git a/ext/exif/tests/exif025.phpt b/ext/exif/tests/exif025.phpt
new file mode 100644
index 0000000..683dc7e
--- /dev/null
+++ b/ext/exif/tests/exif025.phpt
@@ -0,0 +1,55 @@
+--TEST--
+Check for exif_read_data, JPEG with IFD0, EXIF, INTEROP data in Motorola byte-order.
+--SKIPIF--
+<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
+--INI--
+output_handler=
+zlib.output_compression=0
+--FILE--
+<?php
+var_dump(exif_read_data(dirname(__FILE__).'/image025.jpg'));
+?>
+--EXPECTF--
+array(14) {
+ ["FileName"]=>
+ string(12) "image025.jpg"
+ ["FileDateTime"]=>
+ int(%d)
+ ["FileSize"]=>
+ int(%d)
+ ["FileType"]=>
+ int(2)
+ ["MimeType"]=>
+ string(10) "image/jpeg"
+ ["SectionsFound"]=>
+ string(28) "ANY_TAG, IFD0, EXIF, INTEROP"
+ ["COMPUTED"]=>
+ array(5) {
+ ["html"]=>
+ string(20) "width="1" height="1""
+ ["Height"]=>
+ int(1)
+ ["Width"]=>
+ int(1)
+ ["IsColor"]=>
+ int(1)
+ ["ByteOrderMotorola"]=>
+ int(1)
+ }
+ ["Exif_IFD_Pointer"]=>
+ int(26)
+ ["InteroperabilityOffset"]=>
+ int(44)
+ ["InterOperabilityIndex"]=>
+ string(3) "R98"
+ ["InterOperabilityVersion"]=>
+ string(4) "0100"
+ ["RelatedFileFormat"]=>
+ string(12) "image025.jpg"
+ ["RelatedImageWidth"]=>
+ int(1)
+ ["RelatedImageHeight"]=>
+ int(1)
+}
+--CREDIT--
+Eric Stewart <ericleestewart@gmail.com>