ID: 26930 Updated by: [EMAIL PROTECTED] Reported By: reckert at informationsgesellschaft dot com -Status: Open +Status: Bogus Bug Type: Zend Engine 2 problem Operating System: Windows XP PHP Version: 5CVS-2004-01-16 (dev) New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php inside callInit self === a Previous Comments: ------------------------------------------------------------------------ [2004-01-16 04:58:48] reckert at informationsgesellschaft dot com Description: ------------ In a static function X a call to another static function in the same class uses the version of the function in the class where X is implemented, not the one for which X was called for. Reproduce code: --------------- class a { static function init() { echo 'a::init()'; } static function callInit() { self::init(); // do something important } } class b extends a { static function init() { echo 'b::init()'; } } b::callInit(); Expected result: ---------------- b::init() Actual result: -------------- a::init() Shouldn't inheritance work the same way as for normal methods? Thanks for comments, Ralph ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26930&edit=1