felipe Tue Dec 30 12:50:17 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/standard info.c Log: - MFH Added missing check for void param. (patch by Kalle) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/info.c?r1=1.249.2.10.2.14.2.16&r2=1.249.2.10.2.14.2.17&diff_format=u Index: php-src/ext/standard/info.c diff -u php-src/ext/standard/info.c:1.249.2.10.2.14.2.16 php-src/ext/standard/info.c:1.249.2.10.2.14.2.17 --- php-src/ext/standard/info.c:1.249.2.10.2.14.2.16 Tue Dec 9 17:57:59 2008 +++ php-src/ext/standard/info.c Tue Dec 30 12:50:16 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: info.c,v 1.249.2.10.2.14.2.16 2008/12/09 17:57:59 pajoye Exp $ */ +/* $Id: info.c,v 1.249.2.10.2.14.2.17 2008/12/30 12:50:16 felipe Exp $ */ #include "php.h" #include "php_ini.h" @@ -1364,6 +1364,10 @@ Return comma-separated string of .ini files parsed from the additional ini dir */ PHP_FUNCTION(php_ini_scanned_files) { + if (zend_parse_parameters_none() == FAILURE) { + return; + } + if (strlen(PHP_CONFIG_FILE_SCAN_DIR) && php_ini_scanned_files) { RETURN_STRING(php_ini_scanned_files, 1); } else { @@ -1376,6 +1380,10 @@ Return the actual loaded ini filename */ PHP_FUNCTION(php_ini_loaded_file) { + if (zend_parse_parameters_none() == FAILURE) { + return; + } + if (php_ini_opened_path) { RETURN_STRING(php_ini_opened_path, 1); } else {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php