#28261 [NEW]: Lifting reserved keyword restriction for method names
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
Thread (16 messages)
- Philippe dot Jausions at 11abacus dot com
- helly@php.net#28261 [Opn->Csd]: Lifting reserved keyword restriction for method names
- cellog@php.net#28261 [Csd->Opn]: Lifting reserved keyword restriction for method names
- kentfredric at gmail dot com#28261 [Com]: Lifting reserved keyword restriction for method names
- taufiq at krimnet dot com#28261 [Com]: Lifting reserved keyword restriction for method names
- stas@php.netReq #28261 [Opn]: Lifting reserved keyword restriction for method names
- info at strictcoding dot co dot ukReq #28261 [Com]: Lifting reserved keyword restriction for method names
- steven_nikkel at ertyu dot orgReq #28261 [Com]: Lifting reserved keyword restriction for method names
- rayro at gmx dot deReq #28261 [Com]: Lifting reserved keyword restriction for method names
- nathan dot goulding+phpbugs at gmail dot comReq #28261 [Com]: Lifting reserved keyword restriction for method names
- florinpatan at gmail dot comReq #28261 [Com]: Lifting reserved keyword restriction for method names
- general-purpose at yandex dot ruReq #28261 [Com]: Lifting reserved keyword restriction for method names
- swivelgames at gmail dot comReq #28261 [Com]: Lifting reserved keyword restriction for method names
- chris dot baker dot gr at gmail dot comReq #28261 [Com]: Lifting reserved keyword restriction for method names
- ajf@php.netReq #28261 [Com]: Lifting reserved keyword restriction for method names
- danack@php.netReq #28261 [Opn->Csd]: Lifting reserved keyword restriction for method names