|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-23 05:05 UTC] laruence@php.net
[2015-09-23 05:05 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2015-09-29 13:10 UTC] ab@php.net
[2016-07-20 11:36 UTC] davey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
Description: ------------ When an engine exception such as TypeError is not handled this leads to a fatal error. The error message displayed contains the source location twice. Test script: --------------- <?php class C { public function m() : int { return 'foo'; } } $o = new C; $o->m(); Expected result: ---------------- Fatal error: Uncaught TypeError: Return value of C::m() must be of the type integer, string returned in /home/sb/test.php on line 6 Stack trace: #0 /home/sb/test.php(11): C->m() #1 {main} thrown in /home/sb/test.php on line 6 Actual result: -------------- Fatal error: Uncaught TypeError: Return value of C::m() must be of the type integer, string returned in /home/sb/test.php on line 6 in /home/sb/test.php:6 Stack trace: #0 /home/sb/test.php(11): C->m() #1 {main} thrown in /home/sb/test.php on line 6