From 0018eed69f7f77b5932b16ed36b16ae92d44f2dc Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Wed, 11 Feb 2004 11:46:20 +0000 Subject: [PATCH] Finally add a notice to hint people that using dl() is a bad idea... --- ext/standard/dl.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.50.1