Re: PHP_Extension package
| From: | Lukas Smith | Date: | Sat, 17 Apr 2004 21:59:52 +0000 |
| Subject: | Re: PHP_Extension package | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-27889@lists.php.net to get a copy of this message | ||
Philippe Jausions wrote:
Hi, Just inquiring if a package that would check and load PHP extensions is of interest for the PEAR community. The main purpose of the package is to gracefully handle extensions availability. 1. If the extension is already loaded, it's fine. 2. If the extension is not, an attempt at loading it is made based on current configuration (safe-mode, dl_enabled, multihtreaded, CGI, CLI...) The package could be used by a PEAR package (or any script) that relies on a particular extension. If an extension is not available, the script could then load an emulator... For now, the package has only one static class method, but I think it's best to offer a class rather than a function. Who knows, the package could offer more features in the future. A copy of the file can be found at: http://www.11abacus.com/cvs/pear/PHP_Extension.phpsI am about to go to bed so no time looking at the code. Are you aware of PEAR::loadExtension()? regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07