Doc #76027 [Opn]: Incorrect info in documentation for getenv

From: Date: Wed, 28 Feb 2018 11:28:07 +0000
Subject: Doc #76027 [Opn]: Incorrect info in documentation for getenv
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15479@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76027&edit=1 ID: 76027 Updated by: requinix@php.net Reported by: piotr dot zegota at bystro dot biz dot pl Summary: Incorrect info in documentation for getenv Status: Open Type: Documentation Problem Package: PHP options/info functions Operating System: Windows 10 PHP Version: 7.1.14 Block user comment: N Private report: N New Comment: Should also mention in the Changelog that the getenv(void) syntax was added for PHP 7.1.0. Previous Comments: ------------------------------------------------------------------------ [2018-02-28 11:22:42] requinix@php.net Wording change to be more specific about it returning an associative array. ------------------------------------------------------------------------ [2018-02-28 11:08:02] piotr dot zegota at bystro dot biz dot pl Description: ------------ --- From manual page: http://www.php.net/function.getenv --- In Return Values paragraph we have information: "Returns all environment variables without varname." but in PHP 7.1.11 after var_dump getenv() i got array with varname as key. Test script: --------------- <?php var_dump(getenv()); Expected result: ---------------- "Returns all environment variables with varname as key." Actual result: -------------- "Returns all environment variables without varname." ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76027&edit=1

« previous php.doc.bugs (#15479) next »