mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Finally add a notice to hint people that using dl() is a bad idea...
This commit is contained in:
parent
c01c44c2e2
commit
0018eed69f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue