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;
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)
}
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)
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);
}
}
} 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);
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;
# 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; \
<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>
</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="/">
#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"
*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;
}