#12649 [Com]: error tracing

From: Date: Thu, 11 Sep 2003 22:16:46 +0000
Subject: #12649 [Com]: error tracing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47472@lists.php.net to get a copy of this message
ID: 12649 Comment by: nleippe at integr8ted dot com Reported By: gbatyan at hotmail dot com Status: Open Bug Type: Feature/Change Request Operating System: All PHP Version: 4.0.6 New Comment: 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... Previous Comments: ------------------------------------------------------------------------ [2001-08-08 08:21:49] 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... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12649&edit=1

« previous php.bugs (#47472) next »