]> granicus.if.org Git - php/commitdiff
Fix cwd when running tests out of tree with ZTS builds (fixes #45837)
authorArnaud Le Blanc <lbarnaud@php.net>
Fri, 12 Sep 2008 14:14:52 +0000 (14:14 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Fri, 12 Sep 2008 14:14:52 +0000 (14:14 +0000)
run-tests.php

index 8ea1aeda486933a4b7ea5a8c5c1da0cdb7c2846b..7f1435e29e5a7afae206036c15660a2ee1139f17 100755 (executable)
@@ -996,7 +996,7 @@ function error_report($testname, $logname, $tested)
 
 function system_with_timeout($commandline, $env = null, $stdin = null)
 {
-       global $leak_check;
+       global $leak_check, $cwd;
 
        $data = '';
 
@@ -1009,7 +1009,7 @@ function system_with_timeout($commandline, $env = null, $stdin = null)
                0 => array('pipe', 'r'),
                1 => array('pipe', 'w'),
                2 => array('pipe', 'w')
-               ), $pipes, null, $bin_env, array('suppress_errors' => true, 'binary_pipes' => true));
+               ), $pipes, $cwd, $bin_env, array('suppress_errors' => true, 'binary_pipes' => true));
 
        if (!$proc) {
                return false;