#46700 [Bgs]: abstract class public static function isset(): syntax error
| From: | the_djmaze at hotmail dot com | Date: | Fri, 28 Nov 2008 18:46:36 +0000 |
| Subject: | #46700 [Bgs]: abstract class public static function isset(): syntax error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131456@lists.php.net to get a copy of this message | ||
ID: 46700
User updated by: the_djmaze at hotmail dot com
Reported By: the_djmaze at hotmail dot com
Status: Bogus
Bug Type: Feature/Change Request
Operating System: GNU/Linux
PHP Version: 5.2.6
New Comment:
Ehm, i posted in "Feature/Change Request".
Marking as "bogus" and redirecting me to a manual i know from the
inside out is not the answer i expected.
I will contact a few PHP developers in any way i can to pinpoint why
it's marked "bogus" and not something like "not possible"
Previous Comments:
------------------------------------------------------------------------
[2008-11-27 21:24:01] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
isset() is a keyword, and as such you can\'t use it as a function name.
------------------------------------------------------------------------
[2008-11-27 20:52:13] the_djmaze at hotmail dot com
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 this bug report at http://bugs.php.net/?id=46700&edit=1