Re: Safe to load extension twice ?

From: Date: Thu, 16 Aug 2001 00:53:56 +0000
Subject: Re: Safe to load extension twice ?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-63364@lists.php.net to get a copy of this message
> 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

« previous php.dev (#63364) next »