Skip to content

Commit

Permalink
Merge branch 'PHP-5.4'
Browse files Browse the repository at this point in the history
* PHP-5.4:
  Do not unload shared extensions when checking for leaks
  • Loading branch information
bjori committed Jul 17, 2012
2 parents 626effc + 5cf4f73 commit ac227f4
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 @@ -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);
Expand Down Expand Up @@ -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 */
Expand All @@ -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 "
Expand Down

0 comments on commit ac227f4

Please sign in to comment.