Finally add a notice to hint people that using dl() is a bad idea...

This commit is contained in:
Zeev Suraski 2004-02-11 11:46:20 +00:00
parent c01c44c2e2
commit 0018eed69f

View file

@ -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;
}