RE: [PEAR-DEV] Use of dl()
| From: | Graeme Merrall | Date: | Sat, 04 Aug 2001 10:15:22 +0000 |
| Subject: | RE: [PEAR-DEV] Use of dl() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1289@lists.php.net to get a copy of this message | ||
> My main gripe with dl() is that you need to know the ".dll" or ".so"
> extension on your platform. That leads to a bunch of ugly code like
> this:
>
> if (!function_exists('foo_bar')) {
> if($WINDIR) {
> dl("php_foo.dll");
> } else {
> dl("foo.so");
> }
> }
>
> We should have this instead:
>
> php_load_extension('foo');
>
Actually I was thinking that something like that (apart from being in the
core PHP) would live rather nicely in System package :)
Graeme