ID: 38722 Updated by: [EMAIL PROTECTED] Reported By: hannes dot magnusson at gmail dot com -Status: Open +Status: Closed Bug Type: Scripting Engine problem Operating System: * PHP Version: 4.4.4 -Assigned To: +Assigned To: bjori New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-09-05 11:41:51] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38722&edit=1