Bug #77376 [Opn]: "undefined function" message no longer includes namespace
Edit report at https://bugs.php.net/bug.php?id=77376&edit=1
ID: 77376
Updated by: cmb@php.net
Reported by: sjon at hortensius dot net
Summary: "undefined function" message no longer includes
namespace
Status: Open
Type: Bug
-Package: *General Issues
+Package: Scripting Engine problem
Operating System: archlinux
PHP Version: 7.3.0
Block user comment: N
Private report: N
New Comment:
It seems this behavioral change has been caused by commit
6fadb72[1].
[1] <http://git.php.net/?p=php-src.git;a=commit;h=6fadb72c0bf53844d4fccfb04af20fc4554c2189>
Previous Comments:
------------------------------------------------------------------------
[2018-12-30 16:36:26] sjon at hortensius dot net
Description:
------------
I found this while going through https://3v4l.org/bughunt/7.3.0/7.2.13+7.2.12.
I couldn't find any reference to this in the changelog, so it seems to be a bug.
Test script:
---------------
See https://3v4l.org/KGf5M
namespace C;
Hello();
Expected result:
----------------
Fatal error: Uncaught Error: Call to undefined function C\Hello() in /in/KGf5M:3
Actual result:
--------------
Fatal error: Uncaught Error: Call to undefined function hello() in /in/KGf5M:3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77376&edit=1
Thread (3 messages)