php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #72252 change unset() to return true if the variable existed, or false if it did not
Submitted: 2016-05-22 19:33 UTC Modified: 2017-08-04 23:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: mvrk887 at hotmail dot com Assigned:
Status: Suspended Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mvrk887 at hotmail dot com
New email:
PHP Version: OS:

 

 [2016-05-22 19:33 UTC] mvrk887 at hotmail dot com
Description:
------------
as in summary, would be nice to have to avoid unnecessary lookups in userland


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-23 07:39 UTC] stas@php.net
-Package: PHP Language Specification +Package: *General Issues
 [2016-05-29 12:14 UTC] bwoebi@php.net
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
 [2017-08-04 23:00 UTC] stas@php.net
-Status: Open +Status: Suspended
 [2017-08-04 23:00 UTC] stas@php.net
Thank you for your interest in PHP and for submitting a feature request. Please be aware that due to the magnitude of change this request requires, it would be necessary to discuss it on PHP Internals list (internals@lists.php.net) as an RFC. Please read the guide about creating RFCs here:
https://wiki.php.net/rfc/howto
If you haven't had experience with writing RFCs before, it is advised to seek guidance on the Internals list (http://php.net/mailing-lists.php) and/or solicit help from one of the experienced developers. 

Please to not consider this comment as a negative view on the merits of your proposal - every proposal which requires changes of certain magnitude, even the very successful and widely supported ones, must be done through the RFC process. This helps make the process predictable, transparent and accessible to all developers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 04:01:27 2024 UTC