Page 1 of 1

Complement to dl(): unload extension?

Posted: Wed Mar 10, 2010 1:37 pm
by jeff00seattle
Hi

Is there a complement function to dl() for unloading (disabling) an extension at runtime?

I am creating a PHP command-line tool, and I prefer NOT to modify user's php.ini file.

By disabling certain extensions that my command-line tool is not using, exiting PHP when the commanl-line tool concludes is much faster. With these extensions loaded, it takes 60+ seconds for PHP to exit.

Tested this running: > php -m

Here are the PHP extensions I want to disable at runtime:
  • php_curl.dll
  • php_mssql.dll
  • php_mysql.dll
  • php_mysqli.dll
Thanks

Jeff in Seattle

Re: Complement to dl(): unload extension?

Posted: Wed Mar 10, 2010 4:29 pm
by requinix
I know of no such way.

Are they using your PHP or their own copy?