summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-05-02 15:41:06 +0000
committerAntony Dovgal <tony2001@php.net>2007-05-02 15:41:06 +0000
commite03eadf6337b1201f6a4a76765ba7c1dd5202ed8 (patch)
tree8a0e1df11a239763291a4b4464e3b38134b7747b /run-tests.php
parent688cc5039ac5e63eff514496e0438e13811d4dbd (diff)
downloadphp-git-e03eadf6337b1201f6a4a76765ba7c1dd5202ed8.tar.gz
MFH: add USE_ZEND_ALLOC env var
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php6
1 files changed, 6 insertions, 0 deletions
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);