* Fixed missing "parentMessage" entry in print_r($HttpMessageObject)
authorMichael Wallner <mike@php.net>
Thu, 30 Mar 2006 17:17:11 +0000 (17:17 +0000)
committerMichael Wallner <mike@php.net>
Thu, 30 Mar 2006 17:17:11 +0000 (17:17 +0000)
http_message_object.c
package2.xml

index 6e2fc27239550b4602526adc2882d0ca60b86e98..7069e6aa50f3c058e1f3623938062ddd5eefafb7 100644 (file)
@@ -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);
 }
index 39acc85002b06e26b41c2387194db815388936c9..425433f4abb127e52dd9dfc9b29d9e2da8275f05 100644 (file)
@@ -37,7 +37,7 @@ HttpResponse
  </lead>
  <date>2006-00-00</date>
  <version>
-  <release>1.0.0RC2</release>
+  <release>1.0.0RC3</release>
   <api>1.0.0</api>
  </version>
  <stability>
@@ -46,10 +46,7 @@ HttpResponse
  </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="/">