ID: 38722
Updated by: [email]bjoriphp.net[/email]
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
[url]http://snaps.php.net/[/url].

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: [url]http://php.is/bugs/php4.method.error.msg.diff.txt[/url]

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 [url]http://bugs.php.net/?id=38722&edit=1[/url]