Complement to dl(): unload extension?
Posted: Wed Mar 10, 2010 1:37 pm
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:
Jeff in Seattle
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
Jeff in Seattle