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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 + 47 = ?
Subscribe to this entry?

 
 [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 19:01:28 2024 UTC