Skip to content

Commit 2f01ddf

Browse files
committed
make sure USE_ZEND_ALLOC is always 1
1 parent cb9686b commit 2f01ddf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run-tests.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ function run_test($php, $file, $env)
13071307
return 'BORKED';
13081308
}
13091309
save_text($tmp_post, $request);
1310-
$cmd = "$php$pass_options$ini_settings -f \"$test_file\" 2>&1 < $tmp_post";
1310+
$cmd = "USE_ZEND_ALLOC=1 $php$pass_options$ini_settings -f \"$test_file\" 2>&1 < $tmp_post";
13111311
} elseif (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) {
13121312

13131313
$post = trim($section_text['POST']);
@@ -1318,15 +1318,15 @@ function run_test($php, $file, $env)
13181318
$env['CONTENT_TYPE'] = 'application/x-www-form-urlencoded';
13191319
$env['CONTENT_LENGTH'] = $content_length;
13201320

1321-
$cmd = "$php$pass_options$ini_settings -f \"$test_file\" 2>&1 < $tmp_post";
1321+
$cmd = "USE_ZEND_ALLOC=1 $php$pass_options$ini_settings -f \"$test_file\" 2>&1 < $tmp_post";
13221322

13231323
} else {
13241324

13251325
$env['REQUEST_METHOD'] = 'GET';
13261326
$env['CONTENT_TYPE'] = '';
13271327
$env['CONTENT_LENGTH'] = '';
13281328

1329-
$cmd = "$php$pass_options$ini_settings -f \"$test_file\" $args 2>&1";
1329+
$cmd = "USE_ZEND_ALLOC=1 $php$pass_options$ini_settings -f \"$test_file\" $args 2>&1";
13301330
}
13311331

13321332
if ($leak_check) {

0 commit comments

Comments
 (0)