X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=631de1456cdfd75c7502f4b3f0f573befb58da9a;hp=b0916b9af403373bda564d06fd5b410bc30659db;hb=39feb7a7e30bb4b393a6f76aa2f35d4e9275523e;hpb=693aff1dce7d26388ff36794fe4b90a26b7f2ccd diff --git a/http_functions.c b/http_functions.c index b0916b9..631de14 100644 --- a/http_functions.c +++ b/http_functions.c @@ -87,11 +87,11 @@ PHP_FUNCTION(http_date) * Returns the absolute URI as string. * * Examples: - * + *
  * 
- * 
+ * 
*/ PHP_FUNCTION(http_build_uri) { @@ -1254,7 +1254,7 @@ PHP_FUNCTION(http_put_stream) PHP_FUNCTION(http_request_method_register) { char *method; - int *method_len; + int method_len; unsigned long existing; if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &method, &method_len)) { @@ -1264,7 +1264,7 @@ PHP_FUNCTION(http_request_method_register) RETURN_LONG((long) existing); } - RETVAL_LONG((long) http_request_method_register(method)); + RETVAL_LONG((long) http_request_method_register(method, method_len)); } /* }}} */ @@ -1307,7 +1307,7 @@ PHP_FUNCTION(http_request_method_unregister) } /* }}} */ -/* {{{ proto long http_request_method_exists(mixed method) +/* {{{ proto int http_request_method_exists(mixed method) * * Check if a request method is registered (or available by default). *