ID:               31318
 Comment by:       l dot lucioni at communicationvalley dot it
 Reported By:      [EMAIL PROTECTED]
 Status:           No Feedback
 Bug Type:         Feature/Change Request
 Operating System: Irrelevant
 PHP Version:      5CVS-2004-12-28 (dev)
 New Comment:

but still exists. why is it not classified as a bug?


Previous Comments:
------------------------------------------------------------------------

[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".

------------------------------------------------------------------------

[2005-05-02 11:59:41] [EMAIL PROTECTED]

ReflectionAPI?

------------------------------------------------------------------------

[2004-12-28 10:35:24] [EMAIL PROTECTED]

Description:
------------
Static members of a class should be accessible even if the classname is
stored in a variable.

Reproduce code:
---------------
<?php
class Foo {
    public static function bar() {
        print 'Foo::bar()';
    }
}

$class = 'Foo';
$class::bar();
?>


Expected result:
----------------
Foo::bar()

Actual result:
--------------
Parse error: parse error in D:\foo.php on line 9


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31318&edit=1

Reply via email to