diff --git a/run-tests.php b/run-tests.php index 3997a067c74a5..86527e12ae5eb 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1481,8 +1481,10 @@ function run_test($php, $file, $env) if ($leak_check) { $env['USE_ZEND_ALLOC'] = '0'; + $env['ZEND_DONT_UNLOAD_MODULES'] = 1; } else { $env['USE_ZEND_ALLOC'] = '1'; + $env['ZEND_DONT_UNLOAD_MODULES'] = 0; } junit_start_timer($shortname); @@ -1749,6 +1751,7 @@ function run_test($php, $file, $env) if ($leak_check) { $env['USE_ZEND_ALLOC'] = '0'; + $env['ZEND_DONT_UNLOAD_MODULES'] = 1; if ($valgrind_version >= 330) { /* valgrind 3.3.0+ doesn't have --log-file-exactly option */ @@ -1759,6 +1762,7 @@ function run_test($php, $file, $env) } else { $env['USE_ZEND_ALLOC'] = '1'; + $env['ZEND_DONT_UNLOAD_MODULES'] = 0; } if ($DETAILED) echo "