From:             Philippe dot Jausions at 11abacus dot com
Operating system: Irrelevant
PHP version:      Irrelevant
PHP Bug Type:     Class/Object related
Bug description:  Lifting reserved keyword restriction for method names

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 bug report at http://bugs.php.net/?id=28261&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28261&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28261&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28261&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28261&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28261&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28261&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28261&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28261&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28261&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28261&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28261&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28261&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28261&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28261&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28261&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28261&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28261&r=float

Reply via email to