fix bug #67089 Segmentation fault (TSRM)
authorMichael Wallner <mike@php.net>
Tue, 22 Apr 2014 09:56:23 +0000 (11:56 +0200)
committerMichael Wallner <mike@php.net>
Tue, 22 Apr 2014 09:56:23 +0000 (11:56 +0200)
php_http_message.c

index a6414e4..0ffdd9e 100644 (file)
@@ -784,7 +784,7 @@ STATUS php_http_message_object_set_body(php_http_message_object_t *msg_obj, zval
 
 STATUS php_http_message_object_init_body_object(php_http_message_object_t *obj)
 {
-       TSRMLS_FETCH_FROM_CTX(obj);
+       TSRMLS_FETCH_FROM_CTX(obj->message->ts);
 
        php_http_message_body_addref(obj->message->body);
        return php_http_new(NULL, php_http_message_body_class_entry, (php_http_new_t) php_http_message_body_object_new_ex, NULL, obj->message->body, (void *) &obj->body TSRMLS_CC);