note 128565 added to function.putenv

From: Date: Mon, 22 May 2023 12:00:30 +0000
Subject: note 128565 added to function.putenv
Groups: php.notes 
Request: Send a blank email to php-notes+get-220520@lists.php.net to get a copy of this message
Values of variables with dots in their names are not output when using getenv(), but are still present and can be explicitly queried. (saw this behaviour using PHP 8.2.4) <?php // set putenv('foo.bar=baz'); // dump all var_dump(getenv()); # <== variable 'foo.bar' NOT included, its value is not dumped // dump explicitely 'foo.bar' var_dump(getenv('foo.bar')); # works, value 'baz' is shown ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 212.95.118.250) ---- Manual Page -- https://php.net/manual/en/function.putenv.php Edit -- https://main.php.net/note/edit/128565 Del: integrated -- https://main.php.net/note/delete/128565/integrated Del: useless -- https://main.php.net/note/delete/128565/useless Del: bad code -- https://main.php.net/note/delete/128565/bad+code Del: spam -- https://main.php.net/note/delete/128565/spam Del: non-english -- https://main.php.net/note/delete/128565/non-english Del: in docs -- https://main.php.net/note/delete/128565/in+docs Del: other reasons-- https://main.php.net/note/delete/128565 Reject -- https://main.php.net/note/reject/128565 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220520) next »