Re: How to abort MINIT?
| From: | Stanislav Malyshev | Date: | Thu, 22 May 2008 04:04:31 +0000 |
| Subject: | Re: How to abort MINIT? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37789@lists.php.net to get a copy of this message | ||
Hi!
I provide an INI property to stop my extension from loading fully like:
if (strcmp(sapi_module.name, "cli") == 0 &&
INI_STR("plexcel.sapi.cli") &&
INI_BOOL("plexcel.sapi.cli") == 0) {
return;
}
But the extension is still loaded. It's just not initialized.
if you return FAILURE, it will not be loaded, but it will produce E_CORE_ERROR. If you don't like that I'd recommend to keep extension loaded but not register any functions, etc and write some descriptive stuff in phpinfo().
--
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com