Skip to content

Commit

Permalink
Do not unload shared extensions when checking for leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bjori committed Jul 17, 2012
1 parent 86b4252 commit 88f7f3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -1478,8 +1478,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);
Expand Down Expand Up @@ -1746,6 +1748,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 */
Expand All @@ -1756,6 +1759,7 @@ function run_test($php, $file, $env)

} else {
$env['USE_ZEND_ALLOC'] = '1';
$env['ZEND_DONT_UNLOAD_MODULES'] = 0;
}

if ($DETAILED) echo "
Expand Down

0 comments on commit 88f7f3c

Please sign in to comment.