Req #24274 [Fbk->NoF]: New 'function' variable_exists(); patch included
Edit report at https://bugs.php.net/bug.php?id=24274&edit=1
ID: 24274
Updated by: php-bugs@lists.php.net
Reported by: torben@php.net
Summary: New 'function' variable_exists(); patch included
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: *General Issues
Operating System: Any
PHP Version: *
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2014-04-16 18:37:40] levim@php.net
What value is knowing if a variable exists? In the local scope you should already know what
variables exist. The only other use cases I can think of are checking array keys or object
properties and there are already functions for those. What are your current thoughts?
------------------------------------------------------------------------
[2012-05-18 14:03:38] mark at unserver dot de
Any news on this? The current solution (using array_key_exists on $GLOBALS) is quite ugly.
------------------------------------------------------------------------
[2003-08-22 12:06:47] xuefer at 21cn dot com
we have isset() and empty()
not variable_isset() nor variable_isempty()
so why variable_exists() ? why not just exists() ?
it will be widely used if it's implemented
so keep it short if possible :)
------------------------------------------------------------------------
[2003-06-22 10:10:17] cunha17 at uol dot com dot br <Cristiano Duarte>
I think it is a nice function. Are there any plans to commit it to CVS ?
------------------------------------------------------------------------
[2003-06-20 17:28:37] torben at thebuttlesschaps dot com
Hmm. A non-messed-up patch can be found here:
http://www.thebuttlesschaps.com/variable_exists_patch.txt
Torben
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=24274
--
Edit this bug report at https://bugs.php.net/bug.php?id=24274&edit=1
Thread (7 messages)