#48537 [Opn->Fbk]: '#' is recognized as callable function h()
| From: | felipe@php.net | Date: | Fri, 12 Jun 2009 18:12:00 +0000 |
| Subject: | #48537 [Opn->Fbk]: '#' is recognized as callable function h() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-138249@lists.php.net to get a copy of this message | ||
ID: 48537
Updated by: felipe@php.net
Reported By: cristiano at verondini dot it
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 5.2.9
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
I can't reproduce it.
Previous Comments:
------------------------------------------------------------------------
[2009-06-12 15:32:44] cristiano at verondini dot it
Description:
------------
If you test '#' for callability having previously defined a function
named h(), is_callable() returns true, and expands function name as
'h'.
Reproduce code:
---------------
php -r "function h(){} var_dump(is_callable('#'));"
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48537&edit=1