#49022 [Opn->Csd]: Able to define unusable functions
ID: 49022
User updated by: a dot dotreppe at aspyct dot org
Reported By: a dot dotreppe at aspyct dot org
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Windows Vista 32bit
PHP Version: 5.2SVN-2009-07-22 (snap)
New Comment:
That was an error from me, sorry.
Previous Comments:
------------------------------------------------------------------------
[2009-07-22 20:38:08] rasmus@php.net
Could you provide the actual error? I doubt you are getting a parse
error there.
------------------------------------------------------------------------
[2009-07-22 20:35:40] a dot dotreppe at aspyct dot org
Description:
------------
There is a consistency problem between the names we can give to a
function, and the names we can actually use.
For instance, I can create a function named _, but not use it.
Reproduce code:
---------------
// This will parse without error
function _($txt) {
// Do some stuff
}
// This will cause a parse error
_('yes');
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49022&edit=1
Thread (4 messages)