Req #72252 [Opn]: change unset() to return true if the variable existed, or false if it did not
| From: | bwoebi@php.net | Date: | Sun, 29 May 2016 12:14:28 +0000 |
| Subject: | Req #72252 [Opn]: change unset() to return true if the variable existed, or false if it did not | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-201317@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72252&edit=1
ID: 72252
Updated by: bwoebi@php.net
Reported by: mvrk887 at hotmail dot com
Summary: change unset() to return true if the variable
existed, or false if it did not
Status: Open
Type: Feature/Change Request
Package: *General Issues
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I once opened a RFC about that one, but never pushed it to vote due to massive negative feedback.
https://wiki.php.net/rfc/unset_bool
Previous Comments:
------------------------------------------------------------------------
[2016-05-22 19:33:07] mvrk887 at hotmail dot com
Description:
------------
as in summary, would be nice to have to avoid unnecessary lookups in userland
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72252&edit=1