Skip to content

Commit 343d958

Browse files
committed
MFH: Fix cwd when running tests out of tree with ZTS builds (fixes #45837)
1 parent b08615c commit 343d958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,15 +996,15 @@ function error_report($testname, $logname, $tested)
996996

997997
function system_with_timeout($commandline, $env = null, $stdin = null)
998998
{
999-
global $leak_check;
999+
global $leak_check, $cwd;
10001000

10011001
$data = '';
10021002

10031003
$proc = proc_open($commandline, array(
10041004
0 => array('pipe', 'r'),
10051005
1 => array('pipe', 'w'),
10061006
2 => array('pipe', 'w')
1007-
), $pipes, null, $env, array('suppress_errors' => true, 'binary_pipes' => true));
1007+
), $pipes, $cwd, $env, array('suppress_errors' => true, 'binary_pipes' => true));
10081008

10091009
if (!$proc) {
10101010
return false;

0 commit comments

Comments
 (0)