felipe          Tue Dec 30 12:48:00 2008 UTC

  Modified files:              
    /php-src/ext/standard       info.c 
  Log:
  - Added missing check for void param. (patch by Kalle)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/info.c?r1=1.296&r2=1.297&diff_format=u
Index: php-src/ext/standard/info.c
diff -u php-src/ext/standard/info.c:1.296 php-src/ext/standard/info.c:1.297
--- php-src/ext/standard/info.c:1.296   Fri Dec 12 10:33:05 2008
+++ php-src/ext/standard/info.c Tue Dec 30 12:48:00 2008
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: info.c,v 1.296 2008/12/12 10:33:05 pajoye Exp $ */
+/* $Id: info.c,v 1.297 2008/12/30 12:48:00 felipe Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -1323,6 +1323,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_RT_STRING(php_ini_scanned_files, ZSTR_DUPLICATE);
        } else {
@@ -1335,6 +1339,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

Reply via email to