At 16:12 23.3. 2001, Hartmut Holzgraefe wrote the following:
-------------------------------------------------------------- 
>Stefan Livieratos wrote:
>> "Hartmut Holzgraefe" <[EMAIL PROTECTED]> 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. :))



[EMAIL PROTECTED]
-------------
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 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to