RE: [PEAR-DEV] RE: [PEPr] Comment on Networking::Net_DNS2
| From: | Mike Pultz | Date: | Sat, 21 Aug 2010 01:38:01 +0000 |
| Subject: | RE: [PEAR-DEV] RE: [PEPr] Comment on Networking::Net_DNS2 | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-53706@lists.php.net to get a copy of this message | ||
>I think you could use autoload, but not __autoload(). ;-) Function
>__autoload() can only be used once in a codebase so you shouldn't hog
>it and keep the user from using it. :D But you could still write an
>autoloader and use SPL.
>
>E.g. make a method "public static Net_DNS2::autoload", and then use
>spl_autoload_register() to setup your autoloader. ;-)
>
>I think that's perfectly fine. SPL adds autoloaders to a chain that
>are executed so it shouldn't interfere with other code of the
>developer using your library.
Ha- that's exactly what I just did-
;)
Mike