- CS
[m6w6/ext-http] / http_functions.c
index a22bea3d98219f597588cd0b73b2063fa50c4137..eb63337194cdb88604e111ff36a4b2c611c27204 100644 (file)
@@ -1151,7 +1151,7 @@ PHP_FUNCTION(http_get_request_headers)
        NO_ARGS;
 
        array_init(return_value);
-       http_get_request_headers(return_value);
+       http_get_request_headers(Z_ARRVAL_P(return_value));
 }
 /* }}} */
 
@@ -1983,22 +1983,8 @@ PHP_FUNCTION(http_support)
 }
 /* }}} */
 
-#include "zend_exceptions.h"
 PHP_FUNCTION(http_test)
 {
-       int i;
-       
-       for (i = 0; i < 3; ++i) {
-               http_try {
-                       fprintf(stderr, "Throwing Ex %d\n", i);
-                       http_error_ex(HE_THROW, HTTP_E_RUNTIME, "Ex %d", i);
-                       http_try {
-                               fprintf(stderr, "Throwing SubEx %d\n", i);
-                               http_error_ex(HE_THROW, HTTP_E_RUNTIME, "SubEx %d", i);
-                       } http_catch(ZEND_EXCEPTION_GET_DEFAULT());
-               } http_catch(ZEND_EXCEPTION_GET_DEFAULT());
-       }
-       http_final(ZEND_EXCEPTION_GET_DEFAULT());
 }
 
 /*