mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Allow use of dl() when CLI is compiled with ZTS (bug #15717).
This commit is contained in:
parent
8774cc2dfa
commit
0bbc3c3a4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user