#38722 [Opn->Csd]: Calling undefined method (php4) prints insufficient
| From: | bjori@php.net | Date: | Thu, 19 Oct 2006 11:29:11 +0000 |
| Subject: | #38722 [Opn->Csd]: Calling undefined method (php4) prints insufficient | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103726@lists.php.net to get a copy of this message | ||
ID: 38722
Updated by: bjori@php.net
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