From: Michael Wallner Date: Sun, 18 Jan 2015 09:43:55 +0000 (+0100) Subject: fix missing object offset for msg body X-Git-Tag: RELEASE_3_0_0_RC1~96 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ff039e9267166e05d47b16ba4b5f0bf471860843;p=m6w6%2Fext-http fix missing object offset for msg body --- diff --git a/php_http_message_body.c b/php_http_message_body.c index 3ecd895..2b7e308 100644 --- a/php_http_message_body.c +++ b/php_http_message_body.c @@ -882,6 +882,7 @@ PHP_MINIT_FUNCTION(http_message_body) php_http_message_body_class_entry = zend_register_internal_class(&ce); php_http_message_body_class_entry->create_object = php_http_message_body_object_new; memcpy(&php_http_message_body_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); + php_http_message_body_object_handlers.offset = XtOffsetOf(php_http_message_body_object_t, zo); php_http_message_body_object_handlers.clone_obj = php_http_message_body_object_clone; php_http_message_body_object_handlers.free_obj = php_http_message_body_object_free; zend_class_implements(php_http_message_body_class_entry, 1, zend_ce_serializable);