diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-22 10:34:14 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-22 10:34:14 +0200 |
commit | dd3639341df8b07296cf439a87612361cc8f3e90 (patch) | |
tree | 044a7a0808dfb9bc77b9ef2453c9df38457c5231 | |
parent | dd4a080133b7b0570b629cdfb7c9e2651bdf88f7 (diff) | |
download | php-git-dd3639341df8b07296cf439a87612361cc8f3e90.tar.gz |
Don't allow properties on GdImage
Just like all the other former resources... we missed this case.
-rw-r--r-- | ext/gd/gd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 2247379884..88d04824ea 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -222,7 +222,7 @@ static void php_gd_object_minit_helper() zend_class_entry ce; INIT_CLASS_ENTRY(ce, "GdImage", class_GdImage_methods); gd_image_ce = zend_register_internal_class(&ce); - gd_image_ce->ce_flags |= ZEND_ACC_FINAL; + gd_image_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES; gd_image_ce->create_object = php_gd_image_object_create; gd_image_ce->serialize = zend_class_serialize_deny; gd_image_ce->unserialize = zend_class_unserialize_deny; |