Doc #69360 [Opn->Csd]: Return type error in function.getenv
| From: | cmb@php.net | Date: | Thu, 02 Apr 2015 21:32:26 +0000 |
| Subject: | Doc #69360 [Opn->Csd]: Return type error in function.getenv | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12090@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69360&edit=1
ID: 69360
Updated by: cmb@php.net
Reported by: dereckson at espace-win dot org
Summary: Return type error in function.getenv
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-04-02 21:31:47] cmb@php.net
Many PHP functions return FALSE in case of *failure*; that is,
however, never denoted as return type "mixed". Changing only the
documentation of this particular function would be rather
inconsistent. If you deem that should be changed *generally*,
please file a respective feature request.
Anyhow, thanks for taking the time to file a bug report and for
also providing a patch. If you like, you could use the online
documentation editor available at <https://edit.php.net/>
next
time.
------------------------------------------------------------------------
[2015-04-02 20:54:00] dereckson at espace-win dot org
Description:
------------
From manual page: http://www.php.net/getenv
string getenv ( string $varname )
should be:
mixed getenv ( string $varname )
It could return a false boolean value too.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69360&edit=1