@@ -39,6 +39,7 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
39
39
#define this_ce php_v8_access_control_class_entry
40
40
INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " AccessControl" , php_v8_enum_methods);
41
41
this_ce = zend_register_internal_class (&ce);
42
+ this_ce->ce_flags |= ZEND_ACC_FINAL;
42
43
43
44
zend_declare_class_constant_long (this_ce, ZEND_STRL (" DEFAULT_ACCESS" ), v8::AccessControl::DEFAULT);
44
45
zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_CAN_READ" ), v8::AccessControl::ALL_CAN_READ);
@@ -49,6 +50,7 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
49
50
#define this_ce php_v8_constructor_behavior_class_entry
50
51
INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " ConstructorBehavior" , php_v8_enum_methods);
51
52
this_ce = zend_register_internal_class (&ce);
53
+ this_ce->ce_flags |= ZEND_ACC_FINAL;
52
54
53
55
zend_declare_class_constant_long (this_ce, ZEND_STRL (" THROW" ), static_cast <long >(v8::ConstructorBehavior::kThrow ));
54
56
zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALLOW" ), static_cast <long >(v8::ConstructorBehavior::kAllow ));
@@ -59,6 +61,7 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
59
61
#define this_ce php_v8_integrity_level_class_entry
60
62
INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " IntegrityLevel" , php_v8_enum_methods);
61
63
this_ce = zend_register_internal_class (&ce);
64
+ this_ce->ce_flags |= ZEND_ACC_FINAL;
62
65
63
66
zend_declare_class_constant_long (this_ce, ZEND_STRL (" FROZEN" ), static_cast <zend_long>(v8::IntegrityLevel::kFrozen ));
64
67
zend_declare_class_constant_long (this_ce, ZEND_STRL (" SEALED" ), static_cast <zend_long>(v8::IntegrityLevel::kSealed ));
@@ -68,6 +71,7 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
68
71
#define this_ce php_v8_property_attribute_class_entry
69
72
INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " PropertyAttribute" , php_v8_enum_methods);
70
73
this_ce = zend_register_internal_class (&ce);
74
+ this_ce->ce_flags |= ZEND_ACC_FINAL;
71
75
72
76
zend_declare_class_constant_long (this_ce, ZEND_STRL (" NONE" ), v8::PropertyAttribute::None);
73
77
zend_declare_class_constant_long (this_ce, ZEND_STRL (" READ_ONLY" ), v8::PropertyAttribute::ReadOnly);
@@ -80,6 +84,7 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
80
84
#define this_ce php_v8_property_handler_flags_class_entry
81
85
INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " PropertyHandlerFlags" , php_v8_enum_methods);
82
86
this_ce = zend_register_internal_class (&ce);
87
+ this_ce->ce_flags |= ZEND_ACC_FINAL;
83
88
84
89
zend_declare_class_constant_long (this_ce, ZEND_STRL (" NONE" ), static_cast <zend_long>(v8::PropertyHandlerFlags::kNone ));
85
90
zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_CAN_READ" ), static_cast <zend_long>(v8::PropertyHandlerFlags::kAllCanRead ));
@@ -91,6 +96,7 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
91
96
#define this_ce php_v8_property_filter_class_entry
92
97
INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " PropertyFilter" , php_v8_enum_methods);
93
98
this_ce = zend_register_internal_class (&ce);
99
+ this_ce->ce_flags |= ZEND_ACC_FINAL;
94
100
95
101
zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_PROPERTIES" ), v8::PropertyFilter::ALL_PROPERTIES);
96
102
zend_declare_class_constant_long (this_ce, ZEND_STRL (" ONLY_WRITABLE" ), v8::PropertyFilter::ONLY_WRITABLE);
@@ -104,6 +110,7 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
104
110
#define this_ce php_v8_key_collection_mode_class_entry
105
111
INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " KeyCollectionMode" , php_v8_enum_methods);
106
112
this_ce = zend_register_internal_class (&ce);
113
+ this_ce->ce_flags |= ZEND_ACC_FINAL;
107
114
108
115
zend_declare_class_constant_long (this_ce, ZEND_STRL (" OWN_ONLY" ), static_cast <zend_long>(v8::KeyCollectionMode::kOwnOnly ));
109
116
zend_declare_class_constant_long (this_ce, ZEND_STRL (" INCLUDE_PROTOTYPES" ), static_cast <zend_long>(v8::KeyCollectionMode::kIncludePrototypes ));
@@ -113,6 +120,7 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
113
120
#define this_ce php_v8_index_filter_class_entry
114
121
INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " IndexFilter" , php_v8_enum_methods);
115
122
this_ce = zend_register_internal_class (&ce);
123
+ this_ce->ce_flags |= ZEND_ACC_FINAL;
116
124
117
125
zend_declare_class_constant_long (this_ce, ZEND_STRL (" INCLUDE_INDICES" ), static_cast <zend_long>(v8::IndexFilter::kIncludeIndices ));
118
126
zend_declare_class_constant_long (this_ce, ZEND_STRL (" SKIP_INDICES" ), static_cast <zend_long>(v8::IndexFilter::kSkipIndices ));
0 commit comments