@@ -41,17 +41,17 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
4141 this_ce = zend_register_internal_class (&ce);
4242
4343 zend_declare_class_constant_long (this_ce, ZEND_STRL (" DEFAULT_ACCESS" ), v8::AccessControl::DEFAULT);
44- zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_CAN_READ" ), v8::AccessControl::ALL_CAN_READ);
45- zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_CAN_WRITE" ), v8::AccessControl::ALL_CAN_WRITE);
44+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_CAN_READ" ), v8::AccessControl::ALL_CAN_READ);
45+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_CAN_WRITE" ), v8::AccessControl::ALL_CAN_WRITE);
4646 #undef this_ce
4747
4848 // v8::ConstructorBehavior
4949 #define this_ce php_v8_constructor_behavior_class_entry
5050 INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " ConstructorBehavior" , php_v8_enum_methods);
5151 this_ce = zend_register_internal_class (&ce);
5252
53- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kThrow " ), static_cast <long >(v8::ConstructorBehavior::kThrow ));
54- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kAllow " ), static_cast <long >(v8::ConstructorBehavior::kAllow ));
53+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" THROW " ), static_cast <long >(v8::ConstructorBehavior::kThrow ));
54+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALLOW " ), static_cast <long >(v8::ConstructorBehavior::kAllow ));
5555
5656 #undef this_ce
5757
@@ -60,19 +60,19 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
6060 INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " IntegrityLevel" , php_v8_enum_methods);
6161 this_ce = zend_register_internal_class (&ce);
6262
63- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kFrozen " ), static_cast <zend_long>(v8::IntegrityLevel::kFrozen ));
64- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kSealed " ), static_cast <zend_long>(v8::IntegrityLevel::kSealed ));
63+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" FROZEN " ), static_cast <zend_long>(v8::IntegrityLevel::kFrozen ));
64+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" SEALED " ), static_cast <zend_long>(v8::IntegrityLevel::kSealed ));
6565 #undef this_ce
6666
6767 // v8::PropertyAttribute
6868 #define this_ce php_v8_property_attribute_class_entry
6969 INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " PropertyAttribute" , php_v8_enum_methods);
7070 this_ce = zend_register_internal_class (&ce);
7171
72- zend_declare_class_constant_long (this_ce, ZEND_STRL (" None " ), v8::PropertyAttribute::None);
73- zend_declare_class_constant_long (this_ce, ZEND_STRL (" ReadOnly " ), v8::PropertyAttribute::ReadOnly);
74- zend_declare_class_constant_long (this_ce, ZEND_STRL (" DontEnum " ), v8::PropertyAttribute::DontEnum);
75- zend_declare_class_constant_long (this_ce, ZEND_STRL (" DontDelete " ), v8::PropertyAttribute::DontDelete);
72+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" NONE " ), v8::PropertyAttribute::None);
73+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" READ_ONLY " ), v8::PropertyAttribute::ReadOnly);
74+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" DONT_ENUM " ), v8::PropertyAttribute::DontEnum);
75+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" DONT_DELETE " ), v8::PropertyAttribute::DontDelete);
7676
7777 #undef this_ce
7878
@@ -81,41 +81,41 @@ PHP_MINIT_FUNCTION (php_v8_enums) {
8181 INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " PropertyHandlerFlags" , php_v8_enum_methods);
8282 this_ce = zend_register_internal_class (&ce);
8383
84- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kNone " ), static_cast <zend_long>(v8::PropertyHandlerFlags::kNone ));
85- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kAllCanRead " ), static_cast <zend_long>(v8::PropertyHandlerFlags::kAllCanRead ));
86- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kNonMasking " ), static_cast <zend_long>(v8::PropertyHandlerFlags::kNonMasking ));
87- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kOnlyInterceptStrings " ), static_cast <zend_long>(v8::PropertyHandlerFlags::kOnlyInterceptStrings ));
84+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" NONE " ), static_cast <zend_long>(v8::PropertyHandlerFlags::kNone ));
85+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_CAN_READ " ), static_cast <zend_long>(v8::PropertyHandlerFlags::kAllCanRead ));
86+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" NON_MASKING " ), static_cast <zend_long>(v8::PropertyHandlerFlags::kNonMasking ));
87+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" ONLY_INTERCEPT_STRINGS " ), static_cast <zend_long>(v8::PropertyHandlerFlags::kOnlyInterceptStrings ));
8888 #undef this_ce
8989
9090 // v8::PropertyFilter
9191 #define this_ce php_v8_property_filter_class_entry
9292 INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " PropertyFilter" , php_v8_enum_methods);
9393 this_ce = zend_register_internal_class (&ce);
9494
95- zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_PROPERTIES" ), v8::PropertyFilter::ALL_PROPERTIES);
96- zend_declare_class_constant_long (this_ce, ZEND_STRL (" ONLY_WRITABLE" ), v8::PropertyFilter::ONLY_WRITABLE);
97- zend_declare_class_constant_long (this_ce, ZEND_STRL (" ONLY_ENUMERABLE" ), v8::PropertyFilter::ONLY_ENUMERABLE);
95+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" ALL_PROPERTIES" ), v8::PropertyFilter::ALL_PROPERTIES);
96+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" ONLY_WRITABLE" ), v8::PropertyFilter::ONLY_WRITABLE);
97+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" ONLY_ENUMERABLE" ), v8::PropertyFilter::ONLY_ENUMERABLE);
9898 zend_declare_class_constant_long (this_ce, ZEND_STRL (" ONLY_CONFIGURABLE" ), v8::PropertyFilter::ONLY_CONFIGURABLE);
99- zend_declare_class_constant_long (this_ce, ZEND_STRL (" SKIP_STRINGS" ), v8::PropertyFilter::SKIP_STRINGS);
100- zend_declare_class_constant_long (this_ce, ZEND_STRL (" SKIP_SYMBOLS" ), v8::PropertyFilter::SKIP_SYMBOLS);
99+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" SKIP_STRINGS" ), v8::PropertyFilter::SKIP_STRINGS);
100+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" SKIP_SYMBOLS" ), v8::PropertyFilter::SKIP_SYMBOLS);
101101 #undef this_ce
102102
103103 // v8::KeyCollectionMode
104104 #define this_ce php_v8_key_collection_mode_class_entry
105105 INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " KeyCollectionMode" , php_v8_enum_methods);
106106 this_ce = zend_register_internal_class (&ce);
107107
108- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kOwnOnly " ), static_cast <zend_long>(v8::KeyCollectionMode::kOwnOnly ));
109- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kIncludePrototypes " ), static_cast <zend_long>(v8::KeyCollectionMode::kIncludePrototypes ));
108+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" OWN_ONLY " ), static_cast <zend_long>(v8::KeyCollectionMode::kOwnOnly ));
109+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" INCLUDE_PROTOTYPES " ), static_cast <zend_long>(v8::KeyCollectionMode::kIncludePrototypes ));
110110 #undef this_ce
111111
112112 // v8::IndexFilter
113113 #define this_ce php_v8_index_filter_class_entry
114114 INIT_NS_CLASS_ENTRY (ce, PHP_V8_NS, " IndexFilter" , php_v8_enum_methods);
115115 this_ce = zend_register_internal_class (&ce);
116116
117- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kIncludeIndices " ), static_cast <zend_long>(v8::IndexFilter::kIncludeIndices ));
118- zend_declare_class_constant_long (this_ce, ZEND_STRL (" kSkipIndices " ), static_cast <zend_long>(v8::IndexFilter::kSkipIndices ));
117+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" INCLUDE_INDICES " ), static_cast <zend_long>(v8::IndexFilter::kIncludeIndices ));
118+ zend_declare_class_constant_long (this_ce, ZEND_STRL (" SKIP_INDICES " ), static_cast <zend_long>(v8::IndexFilter::kSkipIndices ));
119119 #undef this_ce
120120
121121 return SUCCESS;
0 commit comments