Bug #70548 [Opn->Csd]: Redundant information printed in case of uncaught engine exception
| From: | laruence@php.net | Date: | Wed, 23 Sep 2015 05:05:06 +0000 |
| Subject: | Bug #70548 [Opn->Csd]: Redundant information printed in case of uncaught engine exception | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196174@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70548&edit=1
ID: 70548
Updated by: laruence@php.net
Reported by: sebastian@php.net
Summary: Redundant information printed in case of uncaught
engine exception
-Status: Open
+Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: Irrelevant
PHP Version: 7.0Git-2015-09-22 (Git)
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=504cd492e1b5c29abba7712438bf34934ee96c57
Log: Fixed bug #70548 (Redundant information printed in case of uncaught engine exception)
Previous Comments:
------------------------------------------------------------------------
[2015-09-22 05:49:20] sebastian@php.net
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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70548&edit=1