diff options
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r-- | ext/zlib/zlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index aa3be3a513..2ced8031f3 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -1359,7 +1359,7 @@ static PHP_MINIT_FUNCTION(zlib) zend_class_entry inflate_ce; INIT_CLASS_ENTRY(inflate_ce, "InflateContext", class_InflateContext_methods); inflate_context_ce = zend_register_internal_class(&inflate_ce); - inflate_context_ce->ce_flags |= ZEND_ACC_FINAL; + inflate_context_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES; inflate_context_ce->create_object = inflate_context_create_object; inflate_context_ce->serialize = zend_class_serialize_deny; inflate_context_ce->unserialize = zend_class_unserialize_deny; @@ -1373,7 +1373,7 @@ static PHP_MINIT_FUNCTION(zlib) zend_class_entry deflate_ce; INIT_CLASS_ENTRY(deflate_ce, "DeflateContext", class_DeflateContext_methods); deflate_context_ce = zend_register_internal_class(&deflate_ce); - deflate_context_ce->ce_flags |= ZEND_ACC_FINAL; + deflate_context_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES; deflate_context_ce->create_object = deflate_context_create_object; deflate_context_ce->serialize = zend_class_serialize_deny; deflate_context_ce->unserialize = zend_class_unserialize_deny; |