#29466 [Opn->Bgs]: $class::method(arg) is not allowed
| From: | derick@php.net | Date: | Mon, 02 Aug 2004 11:23:11 +0000 |
| Subject: | #29466 [Opn->Bgs]: $class::method(arg) is not allowed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63921@lists.php.net to get a copy of this message | ||
ID: 29466
Updated by: derick@php.net
Reported By: hybrid at tuxfamily dot org
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: *
PHP Version: 5.0.0
New Comment:
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
.
Previous Comments:
------------------------------------------------------------------------
[2004-07-31 13:50:04] hybrid at tuxfamily dot org
Description:
------------
i don't know if this is a bug or not, but it seems that php doesn't
allow for $class::method(arg), this might be done using call_user_func
but, it's simply annoying
Reproduce code:
---------------
<?php
class test
{
final static function testing()
{
echo 'hello';
}
}
$class = 'test';
$class::testing();
?>
Expected result:
----------------
hello
Actual result:
--------------
unexpected T_PAAMAYIM_NEKUDOTAYIM or something like that :D
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29466&edit=1