From: Michael Wallner Date: Thu, 15 Sep 2005 13:52:46 +0000 (+0000) Subject: - http_request_method_*() API should have been available even since last release... X-Git-Tag: RELEASE_0_14_0~25 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=2eaccaa7cf561ddb2efcd0f93992e8b02f5cd88e - http_request_method_*() API should have been available even since last release... --- diff --git a/http_functions.c b/http_functions.c index 617d223..d3b81ea 100644 --- a/http_functions.c +++ b/http_functions.c @@ -20,6 +20,8 @@ #endif #include "php.h" +#include "zend_operators.h" + #include "SAPI.h" #include "php_ini.h" #include "ext/standard/info.h" @@ -1047,6 +1049,8 @@ PHP_FUNCTION(http_put_stream) } } /* }}} */ +#endif /* HTTP_HAVE_CURL */ +/* }}} HAVE_CURL */ /* {{{ proto long http_request_method_register(string method) * @@ -1086,7 +1090,6 @@ PHP_FUNCTION(http_request_method_unregister) case IS_OBJECT: convert_to_string(method); case IS_STRING: -#include "zend_operators.h" if (is_numeric_string(Z_STRVAL_P(method), Z_STRLEN_P(method), NULL, NULL, 1)) { convert_to_long(method); } else { @@ -1154,8 +1157,6 @@ PHP_FUNCTION(http_request_method_name) } } /* }}} */ -#endif -/* }}} HAVE_CURL */ /* {{{ Sara Golemons http_build_query() */ #ifndef ZEND_ENGINE_2