ID:               48533
 Updated by:       fel...@php.net
 Reported By:      ladislav at marek dot su
-Status:           Open
+Status:           Assigned
 Bug Type:         Class/Object related
 Operating System: Linux
 PHP Version:      5.3CVS-2009-06-11 (snap)
-Assigned To:      
+Assigned To:      felipe


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

[2009-06-11 20:04:17] ladislav at marek dot su

Description:
------------
__callStatic is not invoked when called method is defined as private or
protected.

Reproduce code:
---------------
class Test
{
    private static function foo()
    {
    }

    public static function __callStatic($name, $args)
    {
        var_dump($name);
    }
}

Test::foo();

Expected result:
----------------
string(3) "foo" 

Actual result:
--------------
Fatal error: Call to private method Test::foo() from context '' in %s
on line %i


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


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

Reply via email to