Error reporting in PHP
| From: | John Lange | Date: | Thu, 15 Aug 2002 19:20:33 +0000 |
| Subject: | Error reporting in PHP | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-86878@lists.php.net to get a copy of this message | ||
Since I accidently subscribed to the wrong list I might as well post this
while I'm here... :)
We do a lot of developing in PHP and we always use classes and inheritance
for everything but there is one thing that drives me up the wall about PHP.
If I call a function with the wrong number of parameters PHP reports the
error on the line where the function is declared and gives NO HINT as to
where that call is being made from.
You have no idea how hard it is and how many hours and hours I've spent
trying to trace back the one function call with the wrong parameters....
Lord PLEASE implement some kind of "stack_trace()" function (yes, just
like Java) that shows how PHP got to the place where the error is.
That would shorten my development time fantastically.
I know there is a lot of work being done these days on the inheritance and
class model in the newest version of PHP (public and private functions
etc.) so I apologize if this is something that has already been addressed.
--
John Lange