PHP 4.0 Bug #8723: Fun with putenv
| From: | mikhail at whasup dot com | Date: | Mon, 15 Jan 2001 20:46:44 +0000 |
| Subject: | PHP 4.0 Bug #8723: Fun with putenv | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44160@lists.php.net to get a copy of this message | ||
From: mikhail@whasup.com
Operating system: SCO Openserver 5.05
PHP version: 4.0.4pl1
PHP Bug Type: Apache related
Bug description: Fun with putenv
Apache: 1.3.14 (with mod_php4 among other)
test.phtml:
<?
putenv("one=one");
$one=getenv("one");
exec("echo two", $two, $ret);
print("1: $one<br>");
print("2: $two[0] ($ret)<br>");
?>
Browser shows:
1: one
2: two (0)
Config options:
configure --with-gd=/usr/local/gd --with-mysql --with-jpeg-dir=/tmp/jpeg-6b
--with-apache=../apache_1.3.14
After hitting Reload, browser shows:
1: one
2: two (0)
After hitting Reload again, browser shows:
1: one
Warning: Undefined index: 0 in /u/local/apache/htdocs/test.phtml on line 6
2: (1)
After "apachectl restart" the above repeats...
--
Edit Bug report at: http://bugs.php.net/?id=8723&edit=1