Doc #76027 [Opn->Csd]: Incorrect info in documentation for getenv
| From: | cmb@php.net | Date: | Wed, 28 Feb 2018 12:33:10 +0000 |
| Subject: | Doc #76027 [Opn->Csd]: Incorrect info in documentation for getenv | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15480@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: cmb@php.net
Reported by: piotr dot zegota at bystro dot biz dot pl
Summary: Incorrect info in documentation for getenv
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: PHP options/info functions
Operating System: Windows 10
PHP Version: 7.1.14
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2018-02-28 12:32:30] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=344396
Log: Fix bug #76027: Incorrect info in documentation for getenv
------------------------------------------------------------------------
[2018-02-28 11:28:06] requinix@php.net
Should also mention in the Changelog that the getenv(void) syntax was added for PHP 7.1.0.
------------------------------------------------------------------------
[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