From 98fb565c7448cd455b8d24df5f6be8fcf9330fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 5 Feb 2021 13:46:46 +0100 Subject: Generate class entries from stubs for another batch of extensions Closes GH-6669 --- ext/ftp/php_ftp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ext/ftp/php_ftp.c') diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 2b944f04e6..52d88fcf96 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -97,8 +97,6 @@ static void ftp_object_destroy(zend_object *zobj) { PHP_MINIT_FUNCTION(ftp) { - zend_class_entry ce; - #ifdef HAVE_FTP_SSL #if OPENSSL_VERSION_NUMBER < 0x10101000 && !defined(LIBRESSL_VERSION_NUMBER) SSL_library_init(); @@ -110,9 +108,7 @@ PHP_MINIT_FUNCTION(ftp) #endif #endif - INIT_CLASS_ENTRY(ce, "FTPConnection", NULL); - php_ftp_ce = zend_register_internal_class(&ce); - php_ftp_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES; + php_ftp_ce = register_class_FTPConnection(); php_ftp_ce->create_object = ftp_object_create; php_ftp_ce->serialize = zend_class_serialize_deny; php_ftp_ce->unserialize = zend_class_unserialize_deny; -- cgit v1.2.1