From: Zeev Suraski Date: Wed, 11 Feb 2004 11:46:20 +0000 (+0000) Subject: Finally add a notice to hint people that using dl() is a bad idea... X-Git-Tag: php-5.0.0b4RC1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0018eed69f7f77b5932b16ed36b16ae92d44f2dc;p=php Finally add a notice to hint people that using dl() is a bad idea... --- diff --git a/ext/standard/dl.c b/ext/standard/dl.c index d26556ebb3..b5f87dce39 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -81,6 +81,7 @@ PHP_FUNCTION(dl) } else if (PG(safe_mode)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Dynamically loaded extensions aren't allowed when running in Safe Mode"); } else { + zend_error(E_STRICT, "dl() is deprecated - use extension= in your php.ini"); php_dl(*file, MODULE_TEMPORARY, return_value TSRMLS_CC); EG(full_tables_cleanup) = 1; }