zeev Wed Feb 11 06:46:21 2004 EDT Modified files: /php-src/ext/standard dl.c Log: Finally add a notice to hint people that using dl() is a bad idea... http://cvs.php.net/diff.php/php-src/ext/standard/dl.c?r1=1.86&r2=1.87&ty=u Index: php-src/ext/standard/dl.c diff -u php-src/ext/standard/dl.c:1.86 php-src/ext/standard/dl.c:1.87 --- php-src/ext/standard/dl.c:1.86 Thu Jan 8 03:17:31 2004 +++ php-src/ext/standard/dl.c Wed Feb 11 06:46:20 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dl.c,v 1.86 2004/01/08 08:17:31 andi Exp $ */ +/* $Id: dl.c,v 1.87 2004/02/11 11:46:20 zeev Exp $ */ #include "php.h" #include "dl.h" @@ -81,6 +81,7 @@ } 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; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php