cvs: pecl /http http_message_object.c http_querystring_object.c missing.h package2.xml php_http.h php_http_api.h
| From: | Michael Wallner | Date: | Mon, 04 Feb 2008 15:48:32 +0000 |
| Subject: | cvs: pecl /http http_message_object.c http_querystring_object.c missing.h package2.xml php_http.h php_http_api.h | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-9667@lists.php.net to get a copy of this message | ||
mike Mon Feb 4 15:48:32 2008 UTC
Modified files:
/pecl/http http_message_object.c http_querystring_object.c
missing.h package2.xml php_http.h php_http_api.h
Log:
fix PHP_5_3 build
http://cvs.php.net/viewvc.cgi/pecl/http/http_message_object.c?r1=1.115&r2=1.116&diff_format=u
Index: pecl/http/http_message_object.c
diff -u pecl/http/http_message_object.c:1.115 pecl/http/http_message_object.c:1.116
--- pecl/http/http_message_object.c:1.115 Wed Oct 3 06:26:02 2007
+++ pecl/http/http_message_object.c Mon Feb 4 15:48:32 2008
@@ -10,7 +10,7 @@
+--------------------------------------------------------------------+
*/
-/* $Id: http_message_object.c,v 1.115 2007/10/03 06:26:02 mike Exp $ */
+/* $Id: http_message_object.c,v 1.116 2008/02/04 15:48:32 mike Exp $ */
#define HTTP_WANT_SAPI
#define HTTP_WANT_CURL
@@ -119,6 +119,7 @@
HTTP_EMPTY_ARGS(getParentMessage);
HTTP_EMPTY_ARGS(send);
+HTTP_EMPTY_ARGS(__toString);
HTTP_BEGIN_ARGS(toString, 0)
HTTP_ARG_VAL(include_parent, 0)
HTTP_END_ARGS;
@@ -195,7 +196,7 @@
HTTP_MESSAGE_ME(key, ZEND_ACC_PUBLIC)
HTTP_MESSAGE_ME(next, ZEND_ACC_PUBLIC)
- ZEND_MALIAS(HttpMessage, __toString, toString, HTTP_ARGS(HttpMessage, toString), ZEND_ACC_PUBLIC)
+ ZEND_MALIAS(HttpMessage, __toString, toString, HTTP_ARGS(HttpMessage, __toString),
ZEND_ACC_PUBLIC)
HTTP_MESSAGE_ME(factory, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
ZEND_MALIAS(HttpMessage, fromString, factory, HTTP_ARGS(HttpMessage, factory),
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
@@ -428,8 +429,13 @@
}
ALLOC_ZVAL(return_value);
+#ifdef Z_SET_REFCOUNT
+ Z_SET_REFCOUNT_P(return_value, 0);
+ Z_UNSET_ISREF_P(return_value);
+#else
return_value->refcount = 0;
return_value->is_ref = 0;
+#endif
#ifdef WONKY
switch (h)
http://cvs.php.net/viewvc.cgi/pecl/http/http_querystring_object.c?r1=1.37&r2=1.38&diff_format=u
Index: pecl/http/http_querystring_object.c
diff -u pecl/http/http_querystring_object.c:1.37 pecl/http/http_querystring_object.c:1.38
--- pecl/http/http_querystring_object.c:1.37 Thu Feb 22 11:04:37 2007
+++ pecl/http/http_querystring_object.c Mon Feb 4 15:48:32 2008
@@ -10,7 +10,7 @@
+--------------------------------------------------------------------+
*/
-/* $Id: http_querystring_object.c,v 1.37 2007/02/22 11:04:37 mike Exp $ */
+/* $Id: http_querystring_object.c,v 1.38 2008/02/04 15:48:32 mike Exp $ */
#define HTTP_WANT_SAPI
#include "php_http.h"
@@ -247,8 +247,13 @@
zend_update_property(THIS_CE, getThis(), ZEND_STRS("queryArray")-1, qarray TSRMLS_CC);
zend_update_property(THIS_CE, getThis(), ZEND_STRS("queryString")-1, qstring
TSRMLS_CC);
+#ifdef Z_SET_ISREF
+ Z_SET_ISREF_P(zend_read_property(THIS_CE, getThis(), ZEND_STRS("queryArray")-1, 0
TSRMLS_CC));
+ Z_SET_ISREF_P(zend_read_property(THIS_CE, getThis(), ZEND_STRS("queryString")-1, 0
TSRMLS_CC));
+#else
zend_read_property(THIS_CE, getThis(), ZEND_STRS("queryArray")-1, 0
TSRMLS_CC)->is_ref = 1;
zend_read_property(THIS_CE, getThis(), ZEND_STRS("queryString")-1, 0
TSRMLS_CC)->is_ref = 1;
+#endif
if (params) {
http_querystring_modify(zend_read_property(THIS_CE, getThis(),
ZEND_STRS("queryArray")-1, 0 TSRMLS_CC), params);
@@ -258,7 +263,7 @@
}
}
} else {
- qarray = ecalloc(1, sizeof(zval));
+ MAKE_STD_ZVAL(qarray);
array_init(qarray);
zend_update_property(THIS_CE, getThis(), ZEND_STRS("queryArray")-1, qarray TSRMLS_CC);
@@ -267,6 +272,8 @@
if (params && http_querystring_modify(qarray, params) && !defer_update) {
http_querystring_update(qarray, zend_read_property(THIS_CE, getThis(),
ZEND_STRS("queryString")-1, 0 TSRMLS_CC));
}
+
+ zval_ptr_dtor(&qarray);
}
return this_ptr;
http://cvs.php.net/viewvc.cgi/pecl/http/missing.h?r1=1.17&r2=1.18&diff_format=u
Index: pecl/http/missing.h
diff -u pecl/http/missing.h:1.17 pecl/http/missing.h:1.18
--- pecl/http/missing.h:1.17 Fri Sep 28 07:21:28 2007
+++ pecl/http/missing.h Mon Feb 4 15:48:32 2008
@@ -10,7 +10,7 @@
+--------------------------------------------------------------------+
*/
-/* $Id: missing.h,v 1.17 2007/09/28 07:21:28 mike Exp $ */
+/* $Id: missing.h,v 1.18 2008/02/04 15:48:32 mike Exp $ */
#ifndef PHP_HTTP_MISSING
#define PHP_HTTP_MISSING
@@ -55,6 +55,10 @@
# endif
#endif
+#ifndef ZVAL_ADDREF
+# define ZVAL_ADDREF Z_ADDREF_P
+#endif
+
#ifndef ZVAL_ZVAL
#define ZVAL_ZVAL(z, zv, copy, dtor) { \
int is_ref, refcount; \
http://cvs.php.net/viewvc.cgi/pecl/http/package2.xml?r1=1.171&r2=1.172&diff_format=u
Index: pecl/http/package2.xml
diff -u pecl/http/package2.xml:1.171 pecl/http/package2.xml:1.172
--- pecl/http/package2.xml:1.171 Mon Nov 26 14:54:38 2007
+++ pecl/http/package2.xml Mon Feb 4 15:48:32 2008
@@ -28,9 +28,9 @@
<email>mike@php.net</email>
<active>yes</active>
</lead>
- <date>2007-11-26</date>
+ <date>2008-02-04</date>
<version>
- <release>1.6.0</release>
+ <release>1.6.1</release>
<api>1.6.0</api>
</version>
<stability>
@@ -39,20 +39,7 @@
</stability>
<license>BSD, revised</license>
<notes><![CDATA[
-+ Added HttpRequest::flushCookies() (libcurl >= 7.17.1)
-+ Added constant HTTP_URL_FROM_ENV
-+ Added 'retrycount' and 'retrydelay' request options
-+ Added libevent support for libcurl (>= 7.16.0):
- o added --with-http-curl-libevent configure option
- o added HttpRequestPool::enableEvents()
-* Fixed problems with cookiestore request option introduced with persistent handles
-* Fixed crash on prematurely called HttpMessage::next()
-* Fixed possible shutdown crash with http_parse_params() and PHP4
-* Fixed a possible crash at module shutdown in the persistent handle API
- (probably fixing bug #11509)
-* Fixed test suite for PHP4
-* Fixed missing PHP_LIBDIR definition in config.m4 for PHP4
-* Fixed non-standard shell support in config.m4
+* Fixed PHP-5.3 build
]]></notes>
<contents>
<dir name="/">
http://cvs.php.net/viewvc.cgi/pecl/http/php_http.h?r1=1.195&r2=1.196&diff_format=u
Index: pecl/http/php_http.h
diff -u pecl/http/php_http.h:1.195 pecl/http/php_http.h:1.196
--- pecl/http/php_http.h:1.195 Mon Nov 26 14:45:51 2007
+++ pecl/http/php_http.h Mon Feb 4 15:48:32 2008
@@ -10,12 +10,12 @@
+--------------------------------------------------------------------+
*/
-/* $Id: php_http.h,v 1.195 2007/11/26 14:45:51 mike Exp $ */
+/* $Id: php_http.h,v 1.196 2008/02/04 15:48:32 mike Exp $ */
#ifndef PHP_EXT_HTTP_H
#define PHP_EXT_HTTP_H
-#define PHP_EXT_HTTP_VERSION "1.6.0"
+#define PHP_EXT_HTTP_VERSION "1.6.1"
#ifdef HAVE_CONFIG_H
# include "config.h"
http://cvs.php.net/viewvc.cgi/pecl/http/php_http_api.h?r1=1.86&r2=1.87&diff_format=u
Index: pecl/http/php_http_api.h
diff -u pecl/http/php_http_api.h:1.86 pecl/http/php_http_api.h:1.87
--- pecl/http/php_http_api.h:1.86 Wed Sep 5 12:15:25 2007
+++ pecl/http/php_http_api.h Mon Feb 4 15:48:32 2008
@@ -10,7 +10,7 @@
+--------------------------------------------------------------------+
*/
-/* $Id: php_http_api.h,v 1.86 2007/09/05 12:15:25 mike Exp $ */
+/* $Id: php_http_api.h,v 1.87 2008/02/04 15:48:32 mike Exp $ */
#ifndef PHP_HTTP_API_H
#define PHP_HTTP_API_H
@@ -296,8 +296,13 @@
*copy = *z;
zval_copy_ctor(copy);
convert_to_type(type, copy);
+#ifdef Z_SET_REFCOUNT
+ Z_SET_REFCOUNT_P(copy, 0);
+ Z_UNSET_ISREF_P(copy);
+#else
copy->refcount = 0;
copy->is_ref = 0;
+#endif
return copy;
}