note 80794 added to language.variables.predefined

From: Date: Thu, 31 Jan 2008 20:56:34 +0000
Subject: note 80794 added to language.variables.predefined
Groups: php.notes 
Request: Send a blank email to php-notes+get-135677@lists.php.net to get a copy of this message
To tokie at hanmail dot net: You took that out of context -- it is merely a recommendation. If your variables_order setting does not contain "E", $_ENV is still useful. Every call to getenv will be "cached" in $_ENV, so you can do this: <?php // variables_order = GPCS var_dump(isset($_ENV['PATH'])); // bool(false) getenv('PATH'); var_dump(isset($_ENV['PATH'])); // bool(true) ?> For some reason, it does not work with with own environment variables. The above example with PHP_TEST instead of PATH would fail (if it is set via putenv). ---- Server IP: 217.13.201.10 Probable Submitter: 85.180.224.185 ---- Manual Page -- http://www.php.net/manual/en/language.variables.predefined.php Edit -- https://master.php.net/note/edit/80794 Del: integrated -- https://master.php.net/note/delete/80794/integrated Del: useless -- https://master.php.net/note/delete/80794/useless Del: bad code -- https://master.php.net/note/delete/80794/bad+code Del: spam -- https://master.php.net/note/delete/80794/spam Del: non-english -- https://master.php.net/note/delete/80794/non-english Del: in docs -- https://master.php.net/note/delete/80794/in+docs Del: other reasons-- https://master.php.net/note/delete/80794 Reject -- https://master.php.net/note/reject/80794 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135677) next »