Re: How to find out which function caused an error

From: Date: Wed, 15 Aug 2001 17:46:03 +0000
Subject: Re: How to find out which function caused an error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62882@lists.php.net to get a copy of this message
Can you post the error so we can have a look at it? If it didn't provide a function, it's probably a parse error (missing semi-colon, missing quote). Tyler Longren Captain Jack Communications tyler@captainjack.com www.captainjack.com On Wed, 15 Aug 2001 18:43:49 +0100 "Justin Finkelstein" <justin@keytwo.net> wrote: > Hi kids > > I have a function in one of my includes: db.inc.php::getQuery which does > most of my mySQL calling for me. > > However, when the mySQL call fails, I get a nice error which is useful > except one thing. It doesn't tell me which function called it. > > Does anyone know how to find to do the equivalent of: > > function myFunc() > { > echo "myFunc was called by the function $calling_function"; > } > > Any ideas? > > j. > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#62882) next »