Page 1 of 1
Unload an extension
Posted: Sun Jun 11, 2006 2:55 pm
by anjanesh
Hi
Is there anyway to uload an extension during run-time ?
Code: Select all
if (extension_loaded('someext'))
{
u_dl('php_someext.dll'); # Unload php_someext.dll
}
Is this possible ?
Thanks
Posted: Sun Jun 11, 2006 3:39 pm
by derchris
No,
extensions can only be disabled by editing php.ini
Posted: Sun Jun 11, 2006 11:53 pm
by anjanesh
No way to unload it using ini_set ?
Code: Select all
<?php
ini_set('extension', 'php_curl.dll'); # Need the opposite of this - make it to #extension or something
phpinfo();
?>
Posted: Mon Jun 12, 2006 3:39 am
by derchris
Only if the extension has an attribute for that.
Like:
extension.bla_enabled = 0/1 in php.ini
Then you can set it in runtime by:
Code: Select all
ini_set("extension.bla_enabled", "0");
Posted: Mon Jun 12, 2006 11:37 am
by feyd
that I know of, that will not actually unload the extension, per se, but just tell it not to process.
Posted: Mon Jun 12, 2006 4:23 pm
by twigletmac
Just out of interest, why are you trying to unload an extension?
Mac
Posted: Mon Jun 12, 2006 11:05 pm
by anjanesh
Need to get mod_gzip to stop working so that flush() works.
Posted: Mon Jun 12, 2006 11:52 pm
by feyd
mod_gzip is an apache module. Do you mean
ob_gzhandler()? If so, look at the notes found on the linked page.