php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46449 ErrorException invalid stacktrace
Submitted: 2008-11-01 14:10 UTC Modified: 2008-11-01 14:34 UTC
From: david at grudl dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.7RC2 OS: Windows
Private report: No CVE-ID:
 [2008-11-01 14:10 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-01 14:34 UTC] felipe@php.net
See Dmitry's comment in bug #45895.

Thanks.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 20:02:01 2014 UTC