From: lumeet at yahoo dot com Operating system: Windows XP SP3 PHP version: 5.3CVS-2009-07-02 (snap) PHP Bug Type: Reproducible crash Bug description: call_user_func_array fails to call parent from inheriting class
Description: ------------ When class C extends B, which extends A, calls from B to its parent methods fail when using call_user_func_array(). Using parent::func() works just fine. Reproduce code: --------------- class A { function func( $str ) { echo $str; } } class B extends A { public function func( $str ) { call_user_func_array( array( $this, 'parent::func' ), array( $str ) ); } } class C extends B { public function func( $str ) { parent::func( $str ); } } $c = new C; $c->func( 'This should work!' ); Expected result: ---------------- The code should output "This should work!". Actual result: -------------- PHP crashes with backtrace (yes, only one line): Function Arg 1 Arg 2 Arg 3 Source php5ts!zend_is_callable_ex+61e 011f0780 00000006 003228e0 -- Edit bug report at http://bugs.php.net/?id=48770&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48770&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48770&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48770&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48770&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48770&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48770&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48770&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48770&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48770&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48770&r=support Expected behavior: http://bugs.php.net/fix.php?id=48770&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48770&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48770&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48770&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48770&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48770&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48770&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48770&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48770&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48770&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48770&r=mysqlcfg