From:             ladislav at marek dot su
Operating system: Linux
PHP version:      5.3CVS-2009-06-11 (snap)
PHP Bug Type:     Class/Object related
Bug description:  __callStatic is not invoked for private/protected methods

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 bug report at http://bugs.php.net/?id=48533&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48533&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48533&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48533&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48533&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48533&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48533&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48533&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48533&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48533&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48533&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48533&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48533&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48533&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48533&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48533&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48533&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48533&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48533&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48533&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48533&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48533&r=mysqlcfg

Reply via email to