Skip to content

Commit

Permalink
Don't allow properties on GdImage
Browse files Browse the repository at this point in the history
Just like all the other former resources... we missed this case.
  • Loading branch information
nikic committed Oct 22, 2020
1 parent dd4a080 commit dd36393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/gd/gd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dd36393

Please sign in to comment.