From: Michael Wallner Date: Thu, 30 Mar 2006 17:17:11 +0000 (+0000) Subject: * Fixed missing "parentMessage" entry in print_r($HttpMessageObject) X-Git-Tag: RELEASE_1_0_0RC3~22 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f43d1c3e5b33a747150a521755cd97ef6e69db0c;p=m6w6%2Fext-http * Fixed missing "parentMessage" entry in print_r($HttpMessageObject) --- diff --git a/http_message_object.c b/http_message_object.c index 6e2fc27..7069e6a 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -596,7 +596,7 @@ static HashTable *_http_message_object_get_props(zval *object TSRMLS_DC) 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); @@ -651,6 +651,14 @@ static HashTable *_http_message_object_get_props(zval *object TSRMLS_DC) 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); } diff --git a/package2.xml b/package2.xml index 39acc85..425433f 100644 --- a/package2.xml +++ b/package2.xml @@ -37,7 +37,7 @@ HttpResponse 2006-00-00 - 1.0.0RC2 + 1.0.0RC3 1.0.0 @@ -46,10 +46,7 @@ HttpResponse BSD, revised = 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) ]]>