cvs: php4 /ext/standard dl.c

From: Date: Tue, 26 Feb 2002 11:00:24 +0000
Subject: cvs: php4 /ext/standard dl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9449@lists.php.net to get a copy of this message
edink Tue Feb 26 06:00:24 2002 EDT Modified files: /php4/ext/standard dl.c Log: Allow use of dl() when CLI is compiled with ZTS (bug #15717). Index: php4/ext/standard/dl.c diff -u php4/ext/standard/dl.c:1.65 php4/ext/standard/dl.c:1.66 --- php4/ext/standard/dl.c:1.65 Thu Jan 31 05:21:24 2002 +++ php4/ext/standard/dl.c Tue Feb 26 06:00:20 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dl.c,v 1.65 2002/01/31 10:21:24 derick Exp $ */ +/* $Id: dl.c,v 1.66 2002/02/26 11:00:20 edink Exp $ */ #include "php.h" #include "dl.h" @@ -58,7 +58,7 @@ 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

« previous php.cvs (#9449) next »