Skip to content

Commit

Permalink
:(
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Apr 10, 2024
1 parent b60ca8d commit 7530cba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,20 @@ static zend_function_entry varint_methods[] = {

void init_class_Types(void) {
zend_class_entry ce;
ce.ce_flags = ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;

INIT_NS_CLASS_ENTRY(ce, "pmmp\\encoding", "Byte", byte_methods);
ce.ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;
zend_register_internal_class(&ce);

INIT_NS_CLASS_ENTRY(ce, "pmmp\\encoding", "BE", big_endian_methods);
ce.ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;
zend_register_internal_class(&ce);

INIT_NS_CLASS_ENTRY(ce, "pmmp\\encoding", "LE", little_endian_methods);
ce.ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;
zend_register_internal_class(&ce);

INIT_NS_CLASS_ENTRY(ce, "pmmp\\encoding", "VarInt", varint_methods);
ce.ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;
zend_register_internal_class(&ce);
}

0 comments on commit 7530cba

Please sign in to comment.