Re: PEAR_Error

From: Date: Sun, 23 Jul 2000 22:36:50 +0000
Subject: Re: PEAR_Error
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-153@lists.php.net to get a copy of this message
Stig Bakken wrote: > > Guys, > > I'm wondering if there is any point in having the $file and $line > parameters to PEAR_Error if they have to be set manually. If using the > defaults, all you'll get is the file and line PEAR_Error is defined in. > At the least, the defaults should be empty, but I think we should have > some function to examine the call stack instead of trying to hack around > it like this. So I propose that we simply drop these parameters until > we can get the current file and line number transparently.  Update: Zeev says that a call stack dump function is on his todo list but won't happen in the immediate future. The Zend executor doesn't have a dedicated stack for this, context for each "frame" is stored in local variables in the calling (C) function. - Stig

« previous php.pear (#153) next »