Re: [PHP] display error line in object method

2005-08-11 Thread Norbert Wenzel
Richard Lynch wrote: There may also be some fancy new way to output the whole stack of functions called... I haven't really checked that out yet. The function stack is printed by debug_backtrace(), isn't it? Supported by PHP since 4.3.0. Norbert -- PHP General Mailing List (http://www.php.n

Re: [PHP] display error line in object method

2005-08-10 Thread comex
On 8/10/05, Georgi Ivanov <[EMAIL PROTECTED]> wrote: > Hi, > I have a db wrapper class. > I use it like this : > $db->query"(SQL HERE") or die ($db->error()); > Is there a way to display the line on which $db->error() is executed without > doing die (__LINE__." ".$db->error() )? http://us3.php.net

Re: [PHP] display error line in object method

2005-08-10 Thread Richard Lynch
On Wed, August 10, 2005 8:10 am, Georgi Ivanov wrote: > Hi, > I have a db wrapper class. > I use it like this : > $db->query"(SQL HERE") or die ($db->error()); > Is there a way to display the line on which $db->error() is executed > without > doing die (__LINE__." ".$db->error() )? Sure! Use thes

RE: [PHP] display error line in object method

2005-08-10 Thread Mike Johnson
From: Georgi Ivanov [mailto:[EMAIL PROTECTED] > Thank you for the replay. > I know i can pass __LINE to $db->error(). > This is not the idea. I want $db->error() to print the line > on which it was > executed . > $parent::__LINE__ > Who is the $parent here ? There isn't, necessarily. That was

Re: [PHP] display error line in object method

2005-08-10 Thread Georgi Ivanov
Thank you for the replay. I know i can pass __LINE to $db->error(). This is not the idea. I want $db->error() to print the line on which it was executed . $parent::__LINE__ Who is the $parent here ? On Wednesday 10 August 2005 18:20, Mike Johnson wrote: > From: Georgi Ivanov [mailto:[EMAIL PROT

RE: [PHP] display error line in object method

2005-08-10 Thread Mike Johnson
From: Georgi Ivanov [mailto:[EMAIL PROTECTED] > Hi, > I have a db wrapper class. > I use it like this : > $db->query"(SQL HERE") or die ($db->error()); > Is there a way to display the line on which $db->error() is > executed without > doing die (__LINE__." ".$db->error() )? > If i put __LINE__