php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76027 Incorrect info in documentation for getenv
Submitted: 2018-02-28 11:08 UTC Modified: 2018-02-28 12:33 UTC
From: piotr dot zegota at bystro dot biz dot pl Assigned: cmb (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 7.1.14 OS: Windows 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 + 18 = ?
Subscribe to this entry?

 
 [2018-02-28 11:08 UTC] 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."

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-28 11:22 UTC] requinix@php.net
-Summary: Incorrect info in documentation +Summary: Incorrect info in documentation for getenv -Package: Documentation problem +Package: PHP options/info functions
 [2018-02-28 11:22 UTC] requinix@php.net
Wording change to be more specific about it returning an associative array.
 [2018-02-28 11:28 UTC] requinix@php.net
Should also mention in the Changelog that the getenv(void) syntax was added for PHP 7.1.0.
 [2018-02-28 12:32 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=344396
Log: Fix bug #76027: Incorrect info in documentation for getenv
 [2018-02-28 12:33 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-02-28 12:33 UTC] cmb@php.net
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.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=4fa631348e0ed69ffefe7481ca7591ce98d6c498
Log: Fix bug #76027: Incorrect info in documentation for getenv
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 07:01:29 2024 UTC