summaryrefslogtreecommitdiff
path: root/ext/shmop/shmop.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/shmop/shmop.c')
-rw-r--r--ext/shmop/shmop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c
index 249359bbdd..c0413893d6 100644
--- a/ext/shmop/shmop.c
+++ b/ext/shmop/shmop.c
@@ -108,10 +108,7 @@ static void shmop_free_obj(zend_object *object)
/* {{{ PHP_MINIT_FUNCTION */
PHP_MINIT_FUNCTION(shmop)
{
- zend_class_entry ce;
- INIT_CLASS_ENTRY(ce, "Shmop", class_Shmop_methods);
- shmop_ce = zend_register_internal_class(&ce);
- shmop_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;
+ shmop_ce = register_class_Shmop();
shmop_ce->create_object = shmop_create_object;
shmop_ce->serialize = zend_class_serialize_deny;
shmop_ce->unserialize = zend_class_unserialize_deny;