summaryrefslogtreecommitdiff
path: root/ext/gmp/gmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gmp/gmp.c')
-rw-r--r--ext/gmp/gmp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c
index 55567f5c6d..78c286cc83 100644
--- a/ext/gmp/gmp.c
+++ b/ext/gmp/gmp.c
@@ -527,9 +527,7 @@ static ZEND_GINIT_FUNCTION(gmp)
/* {{{ ZEND_MINIT_FUNCTION */
ZEND_MINIT_FUNCTION(gmp)
{
- zend_class_entry tmp_ce;
- INIT_CLASS_ENTRY(tmp_ce, "GMP", class_GMP_methods);
- gmp_ce = zend_register_internal_class(&tmp_ce);
+ gmp_ce = register_class_GMP();
gmp_ce->create_object = gmp_create_object;
gmp_ce->serialize = gmp_serialize;
gmp_ce->unserialize = gmp_unserialize;