#49022 [Opn->Csd]: Able to define unusable functions

From: Date: Wed, 22 Jul 2009 20:39:32 +0000
Subject: #49022 [Opn->Csd]: Able to define unusable functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140092@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#140092) next »