note 73308 added to function.putenv
| From: | JM at osu1 dot php dot net | Date: | Sat, 17 Feb 2007 02:41:21 +0000 |
| Subject: | note 73308 added to function.putenv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123502@lists.php.net to get a copy of this message | ||
The other problem with the code from av01 at bugfix dot cc is that
the behaviour is as per the comments here, not there:
<?php
putenv('MYVAR='); // set MYVAR to an empty value. It is in the environment
putenv('MYVAR'); // unset MYVAR. It is removed from the environment
?>
----
Server IP: 216.194.113.175
Probable Submitter: 65.24.91.157
----
Manual Page -- http://www.php.net/manual/en/function.putenv.php
Edit -- https://master.php.net/note/edit/73308
Del: integrated -- https://master.php.net/note/delete/73308/integrated
Del: useless -- https://master.php.net/note/delete/73308/useless
Del: bad code -- https://master.php.net/note/delete/73308/bad+code
Del: spam -- https://master.php.net/note/delete/73308/spam
Del: non-english -- https://master.php.net/note/delete/73308/non-english
Del: in docs -- https://master.php.net/note/delete/73308/in+docs
Del: other reasons-- https://master.php.net/note/delete/73308
Reject -- https://master.php.net/note/reject/73308
Search -- https://master.php.net/manage/user-notes.php