cvs: php-src /sapi/apache2handler php_functions.c
| From: | Ilia Alshanetsky | Date: | Tue, 03 Jan 2006 20:13:31 +0000 |
| Subject: | cvs: php-src /sapi/apache2handler php_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36376@lists.php.net to get a copy of this message | ||
iliaa Tue Jan 3 20:13:31 2006 UTC
Modified files:
/php-src/sapi/apache2handler php_functions.c
Log:
MFB51: 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.23&r2=1.24&diff_format=u
Index: php-src/sapi/apache2handler/php_functions.c
diff -u php-src/sapi/apache2handler/php_functions.c:1.23
php-src/sapi/apache2handler/php_functions.c:1.24
--- php-src/sapi/apache2handler/php_functions.c:1.23 Mon Jan 2 22:39:43 2006
+++ php-src/sapi/apache2handler/php_functions.c Tue Jan 3 20:13:31 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_functions.c,v 1.23 2006/01/02 22:39:43 sniper Exp $ */
+/* $Id: php_functions.c,v 1.24 2006/01/03 20:13:31 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);