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

index 933e4d11607343b52761925326861b0fb00be8c8..758249caf0e10db49cd5d41a35b972b09b3be25f 100644 (file)
@@ -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 {