Re: feature request for __LINE__, __FILE__ and trigger_error

From: Date: Fri, 26 Apr 2002 15:09:22 +0000
Subject: Re: feature request for __LINE__, __FILE__ and trigger_error
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-83368@lists.php.net to get a copy of this message
I wrote this extension a while back, but I never released it since I didn't follow coding style and it was my first forage into extension coding for PHP. It should be what your looking for though for the most part... the function of usefulness is: get_function_call_stack() which will return an array with the call stack for the current function which includes the calling file, funcion and line number. Use a print_r() on the results to get a better idea. Please don't flame me for not releasing or following coding style. Cheers, Rob. ----------------------------------------------------------------------------- php4@developersdesk.com wrote: > > Addressed to: derick@php.net > php-dev@lists.php.net > > ** Reply to note from derick@php.net Wed, 24 Apr 2002 21:06:41 +0200 (CEST) > > > > Hello Michael, > > > > I'm working (80% done) on an extension for this. It should be finished in > > a few days. It doesn't feature the __C*__ things yet, but I can add a > > function for that too. > > > > I'll keep you posted, > > <Loud cheer!!!> > > Thanks, I've wished for this for a long time! -- .-----------------. | Robert Cummings | :-----------------`----------------------------. | Webdeployer - Chief PHP and Java Programmer | :----------------------------------------------: | Mail : mailto:robert.cummings@webmotion.com | | Phone : (613) 731-4046 x.109 | :----------------------------------------------: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `----------------------------------------------'

« previous php.dev (#83368) next »