ID: 40837 Updated by: [EMAIL PROTECTED] Reported By: nick dot telford at gmail dot com -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: Irrelevant PHP Version: 5.2.1 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 . Previous Comments: ------------------------------------------------------------------------ [2007-03-16 16:44:17] nick dot telford at gmail dot com Description: ------------ When declaring two functions in a class (methods) non-static and static functions may not use the same names. While I understand this, this is essentially wrong since static methods and non-static methods are entirely different. This also leads me on to another bug/feature suggestion I'm about to file about not being able to overload static attributes with __set/__get. Reproduce code: --------------- class Example { public static function test() {} public function test() {} } $example = new Example(); $example->test(); Example::test(); Expected result: ---------------- No errors, all methods called correctly. Actual result: -------------- PHP errors with: Fatal error: Cannot redeclare Example::test() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40837&edit=1
