Date: 08/15/01
- Next message: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- Previous message: Markus Fischer: "[PHP-DEV] Safe to load extension twice ?"
- In reply to: Markus Fischer: "[PHP-DEV] Safe to load extension twice ?"
- Next in thread: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- Reply: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> From a technical aspect, is it safe to load a particular
> extension twice ? Does it only hit performance (loading the
> .dll/.so twice) or are there some other caveats which can lead to
> unexpected behaviour ?
>
> Example is an extension already loaded in php.ini via
> extension=foo.so and in the script its also loaded via
> dl('foo.so');
>
> Will this do any harm ?
You will see lots and lots of errors about functions being redefined, so
yes, it is a very bad idea to load a shared library twice.
-Rasmus
-- 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>
- Next message: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- Previous message: Markus Fischer: "[PHP-DEV] Safe to load extension twice ?"
- In reply to: Markus Fischer: "[PHP-DEV] Safe to load extension twice ?"
- Next in thread: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- Reply: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

