Re: Predefined Classes in PHP5
| From: | Roman Neuhauser | Date: | Fri, 09 Feb 2007 15:25:16 +0000 |
| Subject: | Re: Predefined Classes in PHP5 | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248661@lists.php.net to get a copy of this message | ||
# jochem@iamjochem.com / 2007-02-09 16:04:35 +0100:
> Roman Neuhauser wrote:
> > # jochem@iamjochem.com / 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'
>
> >
>
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991