iliaa           Tue Jan  3 20:13:07 2006 UTC

  Modified files:              (Branch: PHP_5_1)
    /php-src/sapi/apache2handler        php_functions.c 
  Log:
  Added param checks for ap2 fetch respose/request header functions.
  
  
http://cvs.php.net/viewcvs.cgi/php-src/sapi/apache2handler/php_functions.c?r1=1.18.2.5&r2=1.18.2.6&diff_format=u
Index: php-src/sapi/apache2handler/php_functions.c
diff -u php-src/sapi/apache2handler/php_functions.c:1.18.2.5 
php-src/sapi/apache2handler/php_functions.c:1.18.2.6
--- php-src/sapi/apache2handler/php_functions.c:1.18.2.5        Mon Jan  2 
22:19:37 2006
+++ php-src/sapi/apache2handler/php_functions.c Tue Jan  3 20:13:07 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_functions.c,v 1.18.2.5 2006/01/02 22:19:37 iliaa Exp $ */
+/* $Id: php_functions.c,v 1.18.2.6 2006/01/03 20:13:07 iliaa Exp $ */
 
 #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
 
@@ -179,6 +179,10 @@
        const apr_array_header_t *arr;
        char *key, *val;
 
+       if (ZEND_NUM_ARGS()) {
+               WRONG_PARAM_COUNT;
+       }
+
        array_init(return_value);
        
        ctx = SG(server_context);
@@ -199,6 +203,10 @@
        const apr_array_header_t *arr;
        char *key, *val;
 
+       if (ZEND_NUM_ARGS()) {
+               WRONG_PARAM_COUNT;
+       }
+
        array_init(return_value);
        
        ctx = SG(server_context);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to