Re: Safe to load extension twice ?
| From: | rasmus at lerdorf dot on dot ca | Date: | Thu, 16 Aug 2001 01:01:57 +0000 |
| Subject: | Re: Safe to load extension twice ? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63365@lists.php.net to get a copy of this message | ||
On Wed, 15 Aug 2001, Andrei Zmievski wrote:
> At 02:53 AM 8/16/01 +0200, Markus Fischer wrote:
> >I tested with php_opengl.dll under windows ... Rasmus was right,
> >zillions of duplicate blabla errors. But under Linux with
> >php-gtk, as Andrei said, nothing.
> >
> >Special Case ?
>
> Maybe because php_gtk.so doesn't register any functions, only classes?
Ah, yes. Looks like the case. Running this script on my laptop:
<?
dl('smarty.so');
dl('smarty.so');
print_r(get_loaded_extensions());
?>
Produces:
Array (
[0] => xml
[1] => wddx
[2] => swf
[3] => standard
[4] => sockets
[5] => snmp
[6] => session
[7] => sablot
[8] => posix
[9] => pgsql
[10] => pdf
[11] => pcre
[12] => openssl
[13] => mysql
[14] => ldap
[15] => imlib
[16] => gd
[17] => exif
[18] => dba
[19] => zlib
[20] => ming
[21] => xmms
[22] => smarty
[23] => apache
)
So, no warnings, and smarty only shows up once.
-Rasmus