getObjectEx(http_message_object, obj, object);
http_message *msg = obj->message;
HashTable *props = OBJ_PROP(obj);
- zval array;
+ zval array, *parent;
INIT_ZARR(array, props);
zend_hash_copy(Z_ARRVAL_P(headers), &msg->hdrs, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *));
ASSOC_PROP(array, zval, "headers", headers);
ASSOC_STRINGL(array, "body", PHPSTR_VAL(msg), PHPSTR_LEN(msg));
+
+ MAKE_STD_ZVAL(parent);
+ if (msg->parent) {
+ ZVAL_OBJVAL(parent, obj->parent, 1);
+ } else {
+ ZVAL_NULL(parent);
+ }
+ ASSOC_PROP(array, zval, "parentMessage", parent);
return OBJ_PROP(obj);
}
</lead>
<date>2006-00-00</date>
<version>
- <release>1.0.0RC2</release>
+ <release>1.0.0RC3</release>
<api>1.0.0</api>
</version>
<stability>
</stability>
<license>BSD, revised</license>
<notes><![CDATA[
-* Fixed Bug #7192: Build against libcurl >= 7.15.2 fails
-* Fixed access of super globals
-* Fixed sending userspace streams
-* Fixed too aggressive caching behaviour of HttpResponse
+* Fixed missing "parentMessage" entry in print_r($HttpMessageObject)
]]></notes>
<contents>
<dir name="/">