[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-bugs
Subject: [DOC-BUGS] [PHP-BUG] Doc #60602 [NEW]: $env can be destructively changed.
From: "me at ktamura dot com"<php-bugs () lists ! php ! net>
Date: 2011-12-23 16:27:45
Message-ID: bug-60602 () bugs ! php ! net
[Download RAW message or body]
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
--
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic