helly           Mon Dec 16 10:04:15 2002 EDT

  Modified files:              
    /php4/ext/exif/tests        exif006.phpt 
  Log:
  Add version check since this will be available since php 4.4.
  
  
Index: php4/ext/exif/tests/exif006.phpt
diff -u php4/ext/exif/tests/exif006.phpt:1.3 php4/ext/exif/tests/exif006.phpt:1.4
--- php4/ext/exif/tests/exif006.phpt:1.3        Mon Dec 16 09:54:35 2002
+++ php4/ext/exif/tests/exif006.phpt    Mon Dec 16 10:04:12 2002
@@ -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 @@
             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--



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to