php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74785 Second parameter to getenv since when?
Submitted: 2017-06-20 05:46 UTC Modified: 2017-06-20 14:02 UTC
From: php at hatlak dot de Assigned: cmb (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 7.1.6 OS:
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:
24 - 11 = ?
Subscribe to this entry?

 
 [2017-06-20 05:46 UTC] php at hatlak dot de
Description:
------------
---
From manual page: http://www.php.net/function.getenv
---

There are two issues regarding the second parameter to getenv, "local_only":

Issue 1: Not clear since which version the second parameter is available
Issue 2: Second parameter is not documented in German translation

Since the second parameter is not documented in the German translation yet (BTW PHPStorm 2017.1.4 doesn't know about it yet either) I assume it has not always been available. However the documentation doesn't tell since which version it has been made available.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-06-20 13:42 UTC] cmb@php.net
-Status: Open +Status: Analyzed -Package: Documentation problem +Package: PHP options/info functions -Assigned To: +Assigned To: cmb
 [2017-06-20 13:42 UTC] cmb@php.net
The second parameter has been introduced in 98b9dfa[1], and is
available as of PHP 5.5.38, 5.6.24 and 7.0.9, respectively[2].

[1] <https://github.com/php/php-src/commit/98b9dfa>
[2] <https://3v4l.org/JBX29>
 [2017-06-20 14:02 UTC] cmb@php.net
-Status: Analyzed +Status: Closed
 [2017-06-20 14:02 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.

Fixed in <http://svn.php.net/viewvc?view=revision&revision=342615> and
<http://svn.php.net/viewvc?view=revision&revision=342616>.
 [2017-06-29 16:04 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=342615
Log: Fix #74785: Second parameter to getenv since when?
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=03ef5ab7122b0c660c8a03e2ff14077f48da387b
Log: Fix #74785: Second parameter to getenv since when?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC