server - it didn't work before, and caused weird results (Zeev)
PHP 4.0 NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-25 Jun 2000, Version 4.0.1
+28 Jun 2000, Version 4.0.1
+- Disabled dl() when PHP is being used as a module inside a multithreaded web
+ server - it didn't work before, and caused weird results (Zeev)
- Added the ImageColorClosestHWB(), ImageCopyMerge() and ImagePaletteCopy()
functions. (Sterling)
- Added ImageCreateFromWBMP() function. (Jouni)
#include "dl.h"
#include "php_globals.h"
#include "ext/standard/info.h"
+#include "SAPI.h"
#ifdef HAVE_LIBDL
#include <stdlib.h>
pval **file;
PLS_FETCH();
+#ifdef ZTS
+ if (strcmp(sapi_module.name, "cgi")!=0) {
+ php_error(E_ERROR, "dl() is not supported in multithreaded Web servers - use extension statements in your php.ini");
+ }
+#endif
+
/* obtain arguments */
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &file) == FAILURE) {
WRONG_PARAM_COUNT;