diff options
author | Felipe Pena <felipe@php.net> | 2008-12-30 12:48:00 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-12-30 12:48:00 +0000 |
commit | b7749479205fa59376cc41d5e50951c30d917da5 (patch) | |
tree | 38f4d886ab5d2f2ffbe36d4df8d009532e82636e | |
parent | 8409ccc0ea72701871034d721375cff7ee370a08 (diff) | |
download | php-git-b7749479205fa59376cc41d5e50951c30d917da5.tar.gz |
- Added missing check for void param. (patch by Kalle)
-rw-r--r-- | ext/standard/info.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c index 933e4d1160..758249caf0 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -1323,6 +1323,10 @@ PHP_FUNCTION(php_uname) 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_RT_STRING(php_ini_scanned_files, ZSTR_DUPLICATE); } else { @@ -1335,6 +1339,10 @@ PHP_FUNCTION(php_ini_scanned_files) 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 { |