--- embedaddon/php/ext/standard/dl.c 2012/02/21 23:48:02 1.1.1.1 +++ embedaddon/php/ext/standard/dl.c 2012/05/29 12:34:43 1.1.1.2 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dl.c,v 1.1.1.1 2012/02/21 23:48:02 misho Exp $ */ +/* $Id: dl.c,v 1.1.1.2 2012/05/29 12:34:43 misho Exp $ */ #include "php.h" #include "dl.h" @@ -63,9 +63,6 @@ PHPAPI PHP_FUNCTION(dl) if (!PG(enable_dl)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Dynamically loaded extensions aren't enabled"); RETURN_FALSE; - } else if (PG(safe_mode)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Dynamically loaded extensions aren't allowed when running in Safe Mode"); - RETURN_FALSE; } if (filename_len >= MAXPATHLEN) { @@ -254,23 +251,6 @@ PHPAPI int php_load_extension(char *filename, int type return FAILURE; } } - -#if SUHOSIN_PATCH - if (strncmp("suhosin", module_entry->name, sizeof("suhosin")-1) == 0) { - void *log_func; - /* sucessfully loaded suhosin extension, now check for logging function replacement */ - log_func = (void *) DL_FETCH_SYMBOL(handle, "suhosin_log"); - if (log_func == NULL) { - log_func = (void *) DL_FETCH_SYMBOL(handle, "_suhosin_log"); - } - if (log_func != NULL) { - zend_suhosin_log = log_func; - } else { - zend_suhosin_log(S_MISC, "could not replace logging function"); - } - } -#endif - return SUCCESS; } /* }}} */