php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12649 error tracing
Submitted: 2001-08-08 08:21 UTC Modified: 2003-09-11 18:27 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: gbatyan at hotmail dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: All
Private report: No CVE-ID: None
 [2001-08-08 08:21 UTC] gbatyan at hotmail dot com
PHP does not have "stack trace" facilities a la Java

Yes, I DO regard it as a bug, please fix it.

Without this very simple feature it is a Nightmare to develop a site with many shared files with complicated logic.

Debugger in many cases will not do since you will have to reproduce the error first, and this is not a convenient way.

It would be nice to have a feature of showing the stack trace in all php error messages, plus a possibility to write a copy of all occured errors to a logfile, plus a possibility to render the current stack trace by a function call (for personal logging, error tracing, whatever).

Please apologise me for roughness, wrong address, or whatever. I got really ANGRY after sitting several hours on finding several idiotic bugs in my sites because the lack of this feature.

Best Regards...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-11 18:16 UTC] nleippe at integr8ted dot com
I would like to suggest both a __CALLSTACK__ constant as well as a 
$_CALLSTACK[] magic array (or equivalants). 
And, if not obvious, include()/require() should definitely be considered 
functions...
 [2003-09-11 18:26 UTC] wez@php.net
PHP 4.3.x has debug_backtrace().
Knock yourselves out :)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 07 23:01:29 2024 UTC