mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
MFH: Fix cwd when running tests out of tree with ZTS builds (fixes #45837)
This commit is contained in:
parent
b08615c675
commit
343d958b25
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user