Complement to dl(): unload extension?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jeff00seattle
Forum Commoner
Posts: 66
Joined: Sat Feb 28, 2009 3:27 pm

Complement to dl(): unload extension?

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Complement to dl(): unload extension?

Post by requinix »

I know of no such way.

Are they using your PHP or their own copy?
Post Reply