Doc #60602 [NEW]: $env can be destructively changed.

From: Date: Fri, 23 Dec 2011 16:27:45 +0000
Subject: Doc #60602 [NEW]: $env can be destructively changed.
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7707@lists.php.net to get a copy of this message
From: Operating system: OSX 10.6.8 PHP version: 5.4SVN-2011-12-23 (SVN) Package: Documentation problem Bug Type: Documentation Problem Bug description:$env can be destructively changed. Description: ------------ --- From manual page: http://www.php.net/function.proc-open#refsect1-function.proc- open-description --- The $env argument can be destructively changed as a result of calling proc_open. We should either document so or change the behavior of the function so that $env's values are not changed as a result of invoking proc_open. Test script: --------------- <?php print_r($_SERVER['argv']); $pipes = array(); proc_open('/bin/echo', array(), $pipes, null, $_SERVER); print_r($_SERVER['argv']); Expected result: ---------------- Array ( [0] => ../futz/a.php ) Array ( [0] => ../futz/a.php ) Actual result: -------------- Array ( [0] => ../futz/a.php ) Array -- Edit bug report at https://bugs.php.net/bug.php?id=60602&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60602&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60602&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60602&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60602&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60602&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60602&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60602&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60602&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60602&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60602&r=support Expected behavior: https://bugs.php.net/fix.php?id=60602&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60602&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60602&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60602&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60602&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60602&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60602&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60602&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60602&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60602&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60602&r=mysqlcfg

« previous php.doc.bugs (#7707) next »