Re: Predefined Classes in PHP5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roman Neuhauser wrote:
> # jochem@xxxxxxxxxxxxx / 2007-02-09 14:44:32 +0100:
>> Jim Lucas wrote:
>>> I am wondering about the "Predefined Classes" for PHP5.
> 
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
>>> I don't have all the various extensions loaded, so I don't have
>>> access to the various classes.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
>> var_dump(get_declared_classes(), get_declared_interfaces());
> 
> This won't help him.

it's more helpful than pointing him at the source - if a class is defined by
an extension and he hasn't loaded it then that class is not 'pre-defined' as
far as his installation is concerned.

besides pretty much all the pre-defined classes that are of general interest are
included as part of extensions that are in the default build (or part of the core),
e.g. the following extensions:

spl
DOM
pdo

for stuff like SOAP, tidy, etc the relevant manual page lists the classes that are
defined.

so the answer to the original question is RTFM like everyone else,
the reaction to 'This wont help him' is 'Let Jim decide for himself would you'

> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux