Bug #70548 [NEW]: Redundant information printed in case of uncaught engine exception
| From: | sebastian@php.net | Date: | Tue, 22 Sep 2015 05:49:23 +0000 |
| Subject: | Bug #70548 [NEW]: Redundant information printed in case of uncaught engine exception | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-196151@lists.php.net to get a copy of this message | ||
From: sebastian
Operating system: Irrelevant
PHP version: 7.0Git-2015-09-22 (Git)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Redundant information printed in case of uncaught engine exception
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 bug report at https://bugs.php.net/bug.php?id=70548&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70548&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70548&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70548&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70548&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70548&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70548&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70548&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70548&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70548&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70548&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70548&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70548&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70548&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70548&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70548&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70548&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70548&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70548&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70548&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70548&r=mysqlcfg