summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-12-30 12:50:16 +0000
committerFelipe Pena <felipe@php.net>2008-12-30 12:50:16 +0000
commite33a951c586b5d78d95edac8bab7d9fec20931dc (patch)
tree99244afc8da3fc53f9d5178b22399d85572889e2
parent9212a9584e0e6815a42b39b96aef0859c89d8e6e (diff)
downloadphp-git-e33a951c586b5d78d95edac8bab7d9fec20931dc.tar.gz
- MFH Added missing check for void param. (patch by Kalle)
-rw-r--r--ext/standard/info.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c
index 7eeae6f085..34d45a53c4 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -1364,6 +1364,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_STRING(php_ini_scanned_files, 1);
} else {
@@ -1376,6 +1380,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 {