Re: builtin functions / constructs

From: Date: Fri, 23 Mar 2001 16:20:50 +0000
Subject: Re: builtin functions / constructs
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-49824@lists.php.net to get a copy of this message
At 16:12 23.3. 2001, Hartmut Holzgraefe wrote the following: -------------------------------------------------------------- >Stefan Livieratos wrote: >> "Hartmut Holzgraefe" <hartmut@six.de> schrieb im Newsbeitrag >> > there's a difference between builtin functions and language constructs >> >> You are right of course. I was misled by the example Cynic used. On the >> other hand I don't know how useful a function that returns all >> language constructs would be. Could someone give me an example for >> using such a function in a sensible way? Well, that was a bad example, however, it stemmed from the fact I didn't know about get_defined_functions(), and get_loaded_extensions() / get_extension_funcs() didn't show it (or I didn't find it). As for the sensible purpose: I'm writing phLXR. It's like LXR, except it's written in PHP, for PHP programs, and (me being still firmly rooted in the NT world) with portability in mind -> no Glimpse. I want the internal PHP stuff (be it a function, a "language construct" (who cares? it feels and tastes like a function!), or your coffee cup to be links to PHP documentation. And the more I can get automagically through a call, the less maintenance work will be required from the user. BTW, this reminds me - how do I use the genfuncsummary / genfunclist scripts given I'm an NT (l)user? >i just wanted to show that there are things that look like functions >but aren't > >i'd suggest that those few should be added to the result of >get_defined_functions, either under 'internal' or as a third >block 'constructs' good idea. also, makes one feel all warm inside when there's someone else of the same mind out there. :)) cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7

« previous php.dev (#49824) next »