summaryrefslogtreecommitdiff
path: root/ext/exif
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-12-16 15:04:12 +0000
committerMarcus Boerger <helly@php.net>2002-12-16 15:04:12 +0000
commit9042a9ddbd3b92108667440affad7dcea2f90bd4 (patch)
tree4721a7549a5b1868b34711e005bf8ee89828187d /ext/exif
parentda1a617f6beea9f9eab151fc6a54df3bb3c8786d (diff)
downloadphp-git-9042a9ddbd3b92108667440affad7dcea2f90bd4.tar.gz
Add version check since this will be available since php 4.4.
Diffstat (limited to 'ext/exif')
-rw-r--r--ext/exif/tests/exif006.phpt8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/exif/tests/exif006.phpt b/ext/exif/tests/exif006.phpt
index d22fae89bd..d3a7c35c71 100644
--- a/ext/exif/tests/exif006.phpt
+++ b/ext/exif/tests/exif006.phpt
@@ -1,11 +1,14 @@
--TEST--
Check for exif_read_data, magic_quotes_runtime
--SKIPIF--
-<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
+<?php
+ if (!extension_loaded('exif')) die('skip exif extension not available');
+ if (version_compare(PHP_VERSION, "4.4.0-dev", "<")) die('skip PHP 4.4 required');
+?>
--INI--
output_handler=
zlib.output_compression=0
-magic_quotes_runtime=1
+magic_quotes_runtime=On
--FILE--
<?php
/*
@@ -14,6 +17,7 @@ magic_quotes_runtime=1
copy of test1.jpg as a thumbnail.
test6.jpg is the same as test2.jpg but with a UNICODE UserComment: &Auml;&Ouml;&&Uuml;&szlig;&auml;&ouml;&uuml;
*/
+print_r(ini_get("magic_quotes_runtime"));
var_dump(exif_read_data(dirname(__FILE__).'/test6.jpg','',true,false));
?>
--EXPECTF--