Calling undefined method (php4) prints insufficient
[2006-09-05 11:41 UTC] hannes dot magnusson at gmail dot com
Description: ------------ Calling undefined method prints insufficient error message Patch: http://php.is/bugs/php4.method.error.msg.diff.txt Reproduce code: --------------- $ sapi/cli/php -r 'class foo {}; foo::bar();' $ sapi/cli/php -r 'class foo {}; $foo = new foo $foo->bar();' $ sapi/cli/php -r 'bar();' Expected result: ---------------- Fatal error: Call to undefined static function: foo::bar() in Command line code on line 1 Fatal error: Call to undefined method: foo->bar() in Command line code on line 1 Fatal error: Call to undefined function: bar() in Command line code on line 1 Actual result: -------------- Fatal error: Call to undefined function: bar() in Command line code on line 1 Fatal error: Call to undefined function: bar() in Command line code on line 1 Fatal error: Call to undefined function: bar() in Command line code on line 1