Date: 08/15/01
- Next message: rasmus <email protected>: "Re: [PHP-DEV] Safe to load extension twice ?"
- Previous message: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- In reply to: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> At 05:38 PM 8/15/01 -0700, Rasmus Lerdorf wrote:
> >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.
>
> error_reporting(E_ALL);
> dl('php_gtk.so');
> dl('php_gtk.so');
>
> Doesn't seem to complain.
Try it from the Apache module version and you will see the warnings.
They look like this:
Warning: Function registration failed - duplicate name -
confirm_test_compiled in /usr/local/home/rasmus/phpweb/test.php on line 3
Warning: test: Unable to register functions, unable to load in Unknown on
line 0
>From this script:
<?
dl('test.so');
dl('test.so');
?>
-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: rasmus <email protected>: "Re: [PHP-DEV] Safe to load extension twice ?"
- Previous message: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- In reply to: Andrei Zmievski: "Re: [PHP-DEV] Safe to load extension twice ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

