#46700 [NEW]: abstract class public static function isset(): syntax error
| From: | the_djmaze at hotmail dot com | Date: | Thu, 27 Nov 2008 20:52:13 +0000 |
| Subject: | #46700 [NEW]: abstract class public static function isset(): syntax error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-131421@lists.php.net to get a copy of this message | ||
From: the_djmaze at hotmail dot com
Operating system: GNU/Linux
PHP version: 5.2.6
PHP Bug Type: Feature/Change Request
Bug description: abstract class public static function isset(): syntax error
Description:
------------
Trying to add a method named "isset" to a class.
I know it's a language construct but shouldn't the parser check if isset()
is called as a function?
Reproduce code:
---------------
<?php
abstract class anObject
{
public static function isset($key) { return $key; }
}
?>
Expected result:
----------------
It works
Actual result:
--------------
Parse error: syntax error, unexpected T_ISSET, expecting T_STRING
--
Edit bug report at http://bugs.php.net/?id=46700&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46700&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46700&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46700&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46700&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46700&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46700&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46700&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46700&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46700&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46700&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46700&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46700&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46700&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46700&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46700&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46700&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46700&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46700&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46700&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46700&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46700&r=mysqlcfg