]> granicus.if.org Git - php/commitdiff
Add version check since this will be available since php 4.4.
authorMarcus Boerger <helly@php.net>
Mon, 16 Dec 2002 15:04:12 +0000 (15:04 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 16 Dec 2002 15:04:12 +0000 (15:04 +0000)
ext/exif/tests/exif006.phpt

index d22fae89bd854506a39617af4d840779aa80bad5..d3a7c35c7118d941a1f102e6e262ebe6202ac22a 100644 (file)
@@ -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--