#31318 [Csd]: Static method invocation with classname in a variable
ID: 31318
Updated by: bjori@php.net
Reported By: sebastian@php.net
Status: Closed
Bug Type: Feature/Change Request
Operating System: Irrelevant
PHP Version: 5CVS-2004-12-28 (dev)
Assigned To: colder
New Comment:
(Was reverted prior to 5.2.4 but committed to 5.3.0)
Previous Comments:
------------------------------------------------------------------------
[2007-08-13 16:05:46] bjori@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Fixed in PHP5.2.4RC1
------------------------------------------------------------------------
[2007-08-13 15:51:26] l dot lucioni at communicationvalley dot it
but still exists. why is it not classified as a bug?
------------------------------------------------------------------------
[2006-01-31 17:51:55] phoeniks at nm dot ru
try
$result = call_user_func(array($class, 'bar'));
------------------------------------------------------------------------
[2006-01-31 15:49:41] markus at cultcom dot de
This still does'nt work and I would realy like to see this working
because it is very ugly to use
eval("return $className::method();") as a workaround...
------------------------------------------------------------------------
[2005-05-10 01:00:03] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/31318
--
Edit this bug report at http://bugs.php.net/?id=31318&edit=1
Thread (8 messages)