Re: [PHP-DEV] Safe to load extension twice ? From: Markus Fischer (mfischer <email protected>)
Date: 08/15/01

So where does this leave us now ?

Altough your smarty.so couldn't complain about duplicate
functions it also registered only once.

When then do other extension obiously seem to register twice
(refering to the duplicate error function name) ?

- Markus

On Wed, Aug 15, 2001 at 06:01:57PM -0700, rasmus <email protected> wrote :
> 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

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail:         mfischer <email protected>
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
              -All your scripts are belong to Zend-

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>