cvs: pecl /http http_curl_api.c php_http.h /http/phpstr phpstr.h

From: Date: Mon, 21 Mar 2005 19:54:15 +0000
Subject: cvs: pecl /http http_curl_api.c php_http.h /http/phpstr phpstr.h
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-2876@lists.php.net to get a copy of this message
mike Mon Mar 21 14:54:15 2005 EDT Modified files: /pecl/http http_curl_api.c php_http.h /pecl/http/phpstr phpstr.h Log: * try the direct way http://cvs.php.net/diff.php/pecl/http/http_curl_api.c?r1=1.22&r2=1.23&ty=u Index: pecl/http/http_curl_api.c diff -u pecl/http/http_curl_api.c:1.22 pecl/http/http_curl_api.c:1.23 --- pecl/http/http_curl_api.c:1.22 Mon Mar 21 14:33:37 2005 +++ pecl/http/http_curl_api.c Mon Mar 21 14:54:13 2005 @@ -13,7 +13,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: http_curl_api.c,v 1.22 2005/03/21 19:33:37 mike Exp $ */ +/* $Id: http_curl_api.c,v 1.23 2005/03/21 19:54:13 mike Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -31,10 +31,6 @@ #include "php_http_curl_api.h" #include "php_http_std_defs.h" -#ifdef ZEND_ENGINE_2 -# include "ext/standard/php_http.h" -#endif - #include "phpstr/phpstr.h" ZEND_DECLARE_MODULE_GLOBALS(http) http://cvs.php.net/diff.php/pecl/http/php_http.h?r1=1.34&r2=1.35&ty=u Index: pecl/http/php_http.h diff -u pecl/http/php_http.h:1.34 pecl/http/php_http.h:1.35 --- pecl/http/php_http.h:1.34 Sun Mar 20 12:24:49 2005 +++ pecl/http/php_http.h Mon Mar 21 14:54:13 2005 @@ -13,7 +13,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_http.h,v 1.34 2005/03/20 17:24:49 mike Exp $ */ +/* $Id: php_http.h,v 1.35 2005/03/21 19:54:13 mike Exp $ */ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H @@ -56,7 +56,7 @@ } http_request_object; typedef enum { - HTTP_GET, + HTTP_GET = 1, HTTP_HEAD, HTTP_POST, } http_request_method; http://cvs.php.net/diff.php/pecl/http/phpstr/phpstr.h?r1=1.2&r2=1.3&ty=u Index: pecl/http/phpstr/phpstr.h diff -u pecl/http/phpstr/phpstr.h:1.2 pecl/http/phpstr/phpstr.h:1.3 --- pecl/http/phpstr/phpstr.h:1.2 Mon Mar 21 14:33:38 2005 +++ pecl/http/phpstr/phpstr.h Mon Mar 21 14:54:14 2005 @@ -1,5 +1,5 @@ -/* $Id: phpstr.h,v 1.2 2005/03/21 19:33:38 mike Exp $ */ +/* $Id: phpstr.h,v 1.3 2005/03/21 19:54:14 mike Exp $ */ #ifndef _PHPSTR_H_ #define _PHPSTR_H_ @@ -35,21 +35,19 @@ RETVAL_STRINGL((STR)->data, (STR)->used, (dup)); \ FREE_PHPSTR((free), (STR)); -struct _phpstr { +typedef struct { size_t size; char *data; size_t used; size_t free; -}; -typedef struct _phpstr phpstr; +} phpstr; -enum _phpstr_free { +typedef enum { PHPSTR_FREE_NOT = 0, PHPSTR_FREE_PTR, /* efree() */ PHPSTR_FREE_VAL, /* phpstr_dtor() */ PHPSTR_FREE_ALL /* phpstr_free() */ -}; -typedef enum _phpstr_free phpstr_free_t; +} phpstr_free_t; #define PHPSTR_ALL_FREE(STR) PHPSTR_FREE_ALL,(STR) #define PHPSTR_PTR_FREE(STR) PHPSTR_FREE_PTR,(STR)

« previous php.pecl.cvs (#2876) next »