php-src/ext/exif/tests/exif004.phpt

39 lines
923 B
Plaintext
Raw Normal View History

2002-06-23 00:39:34 +00:00
--TEST--
Check for exif_read_data, Unicode WinXP tags
--SKIPIF--
2002-10-25 10:59:52 +00:00
<?php
if (!extension_loaded('exif')) die('skip exif extension not available');
if (!extension_loaded('mbstring')) die('skip mbstring extension not available');
2003-01-04 19:19:59 +00:00
if (!defined("EXIF_USE_MBSTRING") || !EXIF_USE_MBSTRING) die ('skip mbstring loaded by dl');
2002-10-25 10:59:52 +00:00
?>
2002-08-21 11:37:22 +00:00
--INI--
2002-11-14 21:45:01 +00:00
output_handler=
zlib.output_compression=0
2002-08-21 11:37:22 +00:00
exif.decode_unicode_intel=UCS-2LE
exif.decode_unicode_motorola=UCS-2BE
exif.encode_unicode=ISO-8859-1
2002-06-23 00:39:34 +00:00
--FILE--
<?php
/*
test4.jpg is a 1*1 image that contains Exif tags written by WindowsXP
*/
2002-12-16 14:54:35 +00:00
$image = exif_read_data(dirname(__FILE__).'/test4.jpg','',true,false);
2002-08-21 11:37:22 +00:00
echo var_dump($image['WINXP']);
2002-06-23 00:39:34 +00:00
?>
--EXPECT--
2002-08-21 11:37:22 +00:00
array(5) {
["Subject"]=>
string(10) "Subject..."
["Keywords"]=>
string(11) "Keywords..."
["Author"]=>
string(9) "Rui Carmo"
["Comments"]=>
string(29) "Comments
2002-06-23 00:39:34 +00:00
Line2
Line3
2002-08-21 11:37:22 +00:00
Line4"
["Title"]=>
string(8) "Title..."
}