]> granicus.if.org Git - php/commitdiff
- MFH Added missing check for void param. (patch by Kalle)
authorFelipe Pena <felipe@php.net>
Tue, 30 Dec 2008 12:50:16 +0000 (12:50 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 30 Dec 2008 12:50:16 +0000 (12:50 +0000)
ext/standard/info.c

index 7eeae6f085db6e8d581352228e9ecf16ad7980ec..34d45a53c4c34a5f67f32e053a64568b90914ffb 100644 (file)
@@ -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 {