From 343d958b25ca8dad260bb6b765b84ad4df6bb53c Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Fri, 12 Sep 2008 14:15:05 +0000 Subject: MFH: Fix cwd when running tests out of tree with ZTS builds (fixes #45837) --- run-tests.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'run-tests.php') diff --git a/run-tests.php b/run-tests.php index c9a43f939c..814f36ce49 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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 = ''; @@ -1004,7 +1004,7 @@ function system_with_timeout($commandline, $env = null, $stdin = null) 0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w') - ), $pipes, null, $env, array('suppress_errors' => true, 'binary_pipes' => true)); + ), $pipes, $cwd, $env, array('suppress_errors' => true, 'binary_pipes' => true)); if (!$proc) { return false; -- cgit v1.2.1