cvs: pecl /http http_request_api.c
| From: | Michael Wallner | Date: | Tue, 31 May 2005 12:28:56 +0000 |
| Subject: | cvs: pecl /http http_request_api.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-3205@lists.php.net to get a copy of this message | ||
mike Tue May 31 08:28:56 2005 EDT
Modified files:
/pecl/http http_request_api.c
Log:
- ws
http://cvs.php.net/diff.php/pecl/http/http_request_api.c?r1=1.4&r2=1.5&ty=u
Index: pecl/http/http_request_api.c
diff -u pecl/http/http_request_api.c:1.4 pecl/http/http_request_api.c:1.5
--- pecl/http/http_request_api.c:1.4 Mon May 30 08:05:51 2005
+++ pecl/http/http_request_api.c Tue May 31 08:28:56 2005
@@ -13,7 +13,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: http_request_api.c,v 1.4 2005/05/30 12:05:51 mike Exp $ */
+/* $Id: http_request_api.c,v 1.5 2005/05/31 12:28:56 mike Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -667,21 +667,21 @@
{
zval **zmethod;
char *http_method;
-
+
if (SUCCESS != zend_hash_index_find(&HTTP_G(request).methods.custom,
HTTP_CUSTOM_REQUEST_METHOD(method), (void **) &zmethod)) {
http_error_ex(E_NOTICE, HTTP_E_PARAM, "Request method with id %lu does not exist",
method);
return FAILURE;
}
spprintf(&http_method, 0, "HTTP_%s", Z_STRVAL_PP(zmethod));
-
+
if ( (SUCCESS != zend_hash_index_del(&HTTP_G(request).methods.custom,
HTTP_CUSTOM_REQUEST_METHOD(method)))
|| (SUCCESS != zend_hash_del(EG(zend_constants), http_method, strlen(http_method) + 1))) {
http_error_ex(E_NOTICE, 0, "Could not unregister request method: %s", http_method);
efree(http_method);
return FAILURE;
}
-
+
efree(http_method);
return SUCCESS;
}
@@ -746,7 +746,7 @@
{
static char *offset = NULL, *original = NULL;
http_request_body *body = (http_request_body *) s;
-
+
switch (body->type)
{
case HTTP_REQUEST_BODY_UPLOADFILE: