Allow use of dl() when CLI is compiled with ZTS (bug #15717).

This commit is contained in:
Edin Kadribasic 2002-02-26 11:00:20 +00:00
parent 8774cc2dfa
commit 0bbc3c3a4c

View File

@ -58,7 +58,7 @@ PHP_FUNCTION(dl)
pval **file;
#ifdef ZTS
if (strcmp(sapi_module.name, "cgi")!=0) {
if ((strcmp(sapi_module.name, "cgi")!=0) && (strcmp(sapi_module.name, "cli")!=0)) {
php_error(E_ERROR, "dl() is not supported in multithreaded Web servers - use extension statements in your php.ini");
}
#endif