|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-03-21 14:13 UTC] enrico dot stahn at gmail dot com
[2016-04-14 23:01 UTC] chrispmaiden at gmail dot com
[2016-04-16 12:50 UTC] chrispmaiden at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 05:00:01 2025 UTC |
Description: ------------ Empty environment variables passed to proc_open are filtered out. Test script: --------------- <?php // process.php $env = ['FOO' => 'abc', 'BAR' => '']; $pipes = []; $process = proc_open('./env.php', [], $pipes, `pwd`, $env); proc_close($process); #!/usr/bin/php <?php // env.php var_dump($_SERVER['FOO']); var_dump($_SERVER['BAR']); php process.php will output: string(3) "abc" PHP Notice: Undefined index: BAR in /Users/kuba/Projects/symfony/issues/env.php on line 6 NULL