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: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david at grudl dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 17:01:30 2024 UTC