Re: [PHP4BETA] Finding out function name

From: Date: Fri, 10 Mar 2000 15:57:26 +0000
Subject: Re: [PHP4BETA] Finding out function name
References: 1 2 3  Groups: php.version4 
Request: Send a blank email to php-version4+get-11874@lists.php.net to get a copy of this message
On Fri, 10 Mar 2000, Faisal Nasim wrote: > > > is it possible for a C function in an extension to find out under > > > which name it had been called from the php code ? > > > > > > (something similar to argv[0] in C programs) > > > > get_active_function_name(). > > The question is not to find the function name, but > actually the file name the flex is parsing! Excuse me, I think I read the question carefully, and I presented the correct answer to what the question was asking. > Enjoy! > > > P.S. get_active_function_name() doesn't work on > PHP4b4pl1 Of course, it does. -Andrei Hacker: Any person who derives joy from discovering ways to circumvent limitations.

« previous php.version4 (#11874) next »