tony2001                Wed May  2 15:41:06 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src    run-tests.php 
  Log:
  MFH: add USE_ZEND_ALLOC env var
  
  
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.226.2.37.2.26&r2=1.226.2.37.2.27&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.226.2.37.2.26 
php-src/run-tests.php:1.226.2.37.2.27
--- php-src/run-tests.php:1.226.2.37.2.26       Mon Apr 23 11:19:15 2007
+++ php-src/run-tests.php       Wed May  2 15:41:06 2007
@@ -23,7 +23,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.226.2.37.2.26 2007/04/23 11:19:15 tony2001 Exp $ */
+/* $Id: run-tests.php,v 1.226.2.37.2.27 2007/05/02 15:41:06 tony2001 Exp $ */
 
 /* Sanity check to ensure that pcre extension needed by this script is 
available.
  * In the event it is not, print a nice error message indicating that this 
script will
@@ -398,7 +398,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo '$Revision: 1.226.2.37.2.26 
$'."\n";
+                                       echo '$Revision: 1.226.2.37.2.27 
$'."\n";
                                        exit(1);
                                default:
                                        echo "Illegal switch '$switch' 
specified!\n";
@@ -1176,6 +1176,12 @@
                        save_text($test_skipif, $section_text['SKIPIF'], 
$temp_skipif);
                        $extra = substr(PHP_OS, 0, 3) !== "WIN" ?
                                "unset REQUEST_METHOD; unset QUERY_STRING; 
unset PATH_TRANSLATED; unset SCRIPT_FILENAME; unset REQUEST_METHOD;": "";
+
+                       if ($leak_check) {
+                               $env['USE_ZEND_ALLOC'] = '0';
+                       } else {
+                               $env['USE_ZEND_ALLOC'] = '1';
+                       }
                        $output = system_with_timeout("$extra $php -q 
$ini_settings $test_skipif", $env);
                        if (!$cfg['keep']['skip']) {
                                @unlink($test_skipif);

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

Reply via email to