summaryrefslogtreecommitdiff
path: root/ext/standard/dl.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2004-02-11 11:46:20 +0000
committerZeev Suraski <zeev@php.net>2004-02-11 11:46:20 +0000
commit0018eed69f7f77b5932b16ed36b16ae92d44f2dc (patch)
treef2394712532572dc4fb09f2626fee63525d13830 /ext/standard/dl.c
parentc01c44c2e2f19ec34ae7e5956c73002dace8cc50 (diff)
downloadphp-git-0018eed69f7f77b5932b16ed36b16ae92d44f2dc.tar.gz
Finally add a notice to hint people that using dl() is a bad idea...
Diffstat (limited to 'ext/standard/dl.c')
-rw-r--r--ext/standard/dl.c1
1 files changed, 1 insertions, 0 deletions
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;
}