Skip to content

Commit 8c76d89

Browse files
committed
Fix #78283: no output for explicit environment
This test does not work on Windows, if the child process has OPcache enabled via php.ini, since TEMP is not set in the environment, so OPcache can't find the base address file, and terminates the childs. To avoid this (and potentially some other issues regarding missing environment variables, such as PATH), we force the child process to ignore any ini files.
1 parent bf242d5 commit 8c76d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/tests/general_functions/proc_open_array.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ proc_close($proc);
2626

2727
putenv('ENV_1=ENV_1');
2828
$env = ['ENV_2' => 'ENV_2'];
29-
$cmd = [$php, '-r', 'var_dump(getenv("ENV_1"), getenv("ENV_2"));'];
29+
$cmd = [$php, '-n', '-r', 'var_dump(getenv("ENV_1"), getenv("ENV_2"));'];
3030

3131
echo "\nEnvironment inheritance:\n";
3232
$proc = proc_open($cmd, $ds, $pipes);

0 commit comments

Comments
 (0)