#46449 [Opn->Bgs]: ErrorException invalid stacktrace

From: Date: Sat, 01 Nov 2008 14:34:12 +0000
Subject: #46449 [Opn->Bgs]: ErrorException invalid stacktrace
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130408@lists.php.net to get a copy of this message
ID: 46449 Updated by: felipe@php.net Reported By: david at grudl dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows PHP Version: 5.2.7RC2 New Comment: See Dmitry's comment in bug #45895. Thanks. Previous Comments: ------------------------------------------------------------------------ [2008-11-01 14:10:24] david at grudl dot com Description: ------------ ErrorException stack trace is invalid. This bug has been fixed in PHP 5.3 Reproduce code: --------------- function f($a, $b) { throw new ErrorException; // Exception works ok } f(1, 2); Expected result: ---------------- Fatal error: Uncaught exception 'ErrorException' in example.php:6 Stack trace: #0 D:\Web\test2.php(9): f(1, 2) #1 {main} thrown in example.php on line 6 Actual result: -------------- Fatal error: Uncaught exception 'ErrorException' in example.php:6 Stack trace: #0 D:\Web\test2.php(9): f() #1 {main} thrown in example.php on line 6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46449&edit=1

« previous php.bugs (#130408) next »