X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_property_proxy.c;h=426f3c3dd2a6f5d63d7b7575d4c2f6b4df80c594;hp=3262205c62c9024f58270d98f83dcba0c4c75a7c;hb=e76f27074a23b1cf83fdd81f97a5c767399225a6;hpb=b1806ca94ae7c49795370d151d68897619fbf378 diff --git a/php_http_property_proxy.c b/php_http_property_proxy.c index 3262205..426f3c3 100644 --- a/php_http_property_proxy.c +++ b/php_http_property_proxy.c @@ -149,6 +149,7 @@ static void php_http_property_proxy_object_write_dimension(zval *object, zval *o switch (Z_TYPE_P(property)) { case IS_NULL: array_init(property); + /* fallthrough */ case IS_ARRAY: Z_ADDREF_P(value); if (!offset) { @@ -175,7 +176,7 @@ PHP_METHOD(HttpPropertyProxy, __construct) PHP_MINIT_FUNCTION(http_property_proxy) { - PHP_HTTP_REGISTER_CLASS(http\\object, PropertyProxy, http_property_proxy, NULL, ZEND_ACC_FINAL); + PHP_HTTP_REGISTER_CLASS(http\\Object, PropertyProxy, http_property_proxy, NULL, ZEND_ACC_FINAL); php_http_property_proxy_class_entry->create_object = php_http_property_proxy_object_new; memcpy(&php_http_property_proxy_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); php_http_property_proxy_object_handlers.set = php_http_property_proxy_object_set;