Hi. I can use return FAILURE during PHP_MINIT_FUNCTION to stop a module from loading and the appropriate message is displayed ...
PHP Warning: PHP Startup: Unable to load dynamic library 'xxxxxx' - The specified module could not be found. in Unknown on line 0 I want to restrict the module to only operate within the CLI SAPI. Using config.w32, I've limited the module to windows only. I can test the sapi ... if (strcmp(sapi_module.name, "cli") != 0) { return FAILURE; } But I'd like to explain why the module cannot be loaded. I've tried using zend_error() and php_error_docref() but I guess the system isn't ready yet for these errors. How do I generate an error (warning level I suppose), that will be logged in the error log file. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php