PHP_Extension package
| From: | Philippe Jausions | Date: | Sat, 17 Apr 2004 21:59:42 +0000 |
| Subject: | PHP_Extension package | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-27888@lists.php.net to get a copy of this message | ||
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.phps
Let me know.
-Philippe