#28261 [Opn->Csd]: Lifting reserved keyword restriction for method names

From: Date: Tue, 04 May 2004 16:18:06 +0000
Subject: #28261 [Opn->Csd]: Lifting reserved keyword restriction for method names
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59211@lists.php.net to get a copy of this message
 ID:               28261
 Updated by:       helly@php.net
 Reported By:      Philippe dot Jausions at 11abacus dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Class/Object related
-Operating System: Irrelevant
+Operating System: *
-PHP Version:      Irrelevant
+PHP Version:      *
 New Comment:

That's simply impossible.


Previous Comments:
------------------------------------------------------------------------

[2004-05-03 17:36:00] Philippe dot Jausions at 11abacus dot com

Description:
------------
Suggestion:

Wouldn't it be possible to lift the reserved keyword restriction for
method names?

It seems to me that there shouldn't be any namespace conflict with the
core PHP language.

Reproduce code:
---------------
<?php

class a {
   function eval() {
      // Do something...
   }
}

?>

Actual result:
--------------
Parse error: parse error, unexpected T_EVAL, expecting T_STRING


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28261&edit=1


Thread (16 messages)

« previous php.bugs (#59211) next »