fmk Tue Oct 22 03:00:51 2002 EDT Modified files: /php4/ext/standard dl.c Log: Fixing check to enable dl() for both cgi and cgi-fcgi Index: php4/ext/standard/dl.c diff -u php4/ext/standard/dl.c:1.74 php4/ext/standard/dl.c:1.75 --- php4/ext/standard/dl.c:1.74 Sun Oct 13 10:14:34 2002 +++ php4/ext/standard/dl.c Tue Oct 22 03:00:51 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dl.c,v 1.74 2002/10/13 14:14:34 derick Exp $ */ +/* $Id: dl.c,v 1.75 2002/10/22 07:00:51 fmk Exp $ */ #include "php.h" #include "dl.h" @@ -65,7 +65,7 @@ pval **file; #ifdef ZTS - if ((strcmp(sapi_module.name, "cgi")!=0) && (strcmp(sapi_module.name, "cli")!=0)) { + if ((strncmp(sapi_module.name, "cgi", 3)!=0) && (strcmp(sapi_module.name, +"cli")!=0)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not supported in multithreaded Web servers - use extension statements in your php.ini"); RETURN_FALSE; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php