From: Antony Dovgal Date: Wed, 2 May 2007 15:41:06 +0000 (+0000) Subject: MFH: add USE_ZEND_ALLOC env var X-Git-Tag: php-5.2.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e03eadf6337b1201f6a4a76765ba7c1dd5202ed8;p=php MFH: add USE_ZEND_ALLOC env var --- diff --git a/run-tests.php b/run-tests.php index 762338e3cc..38e4ed5545 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1176,6 +1176,12 @@ TEST $file 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);