@@ -1101,10 +1101,7 @@ PHP_MINIT_FUNCTION(openssl)
1101
1101
{
1102
1102
char * config_filename ;
1103
1103
1104
- zend_class_entry ce ;
1105
- INIT_CLASS_ENTRY (ce , "OpenSSLCertificate" , class_OpenSSLCertificate_methods );
1106
- php_openssl_certificate_ce = zend_register_internal_class (& ce );
1107
- php_openssl_certificate_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
1104
+ php_openssl_certificate_ce = register_class_OpenSSLCertificate ();
1108
1105
php_openssl_certificate_ce -> create_object = php_openssl_certificate_create_object ;
1109
1106
php_openssl_certificate_ce -> serialize = zend_class_serialize_deny ;
1110
1107
php_openssl_certificate_ce -> unserialize = zend_class_unserialize_deny ;
@@ -1115,10 +1112,7 @@ PHP_MINIT_FUNCTION(openssl)
1115
1112
php_openssl_certificate_object_handlers .get_constructor = php_openssl_certificate_get_constructor ;
1116
1113
php_openssl_certificate_object_handlers .clone_obj = NULL ;
1117
1114
1118
- zend_class_entry csr_ce ;
1119
- INIT_CLASS_ENTRY (csr_ce , "OpenSSLCertificateSigningRequest" , class_OpenSSLCertificateSigningRequest_methods );
1120
- php_openssl_request_ce = zend_register_internal_class (& csr_ce );
1121
- php_openssl_request_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
1115
+ php_openssl_request_ce = register_class_OpenSSLCertificateSigningRequest ();
1122
1116
php_openssl_request_ce -> create_object = php_openssl_request_create_object ;
1123
1117
php_openssl_request_ce -> serialize = zend_class_serialize_deny ;
1124
1118
php_openssl_request_ce -> unserialize = zend_class_unserialize_deny ;
@@ -1129,10 +1123,7 @@ PHP_MINIT_FUNCTION(openssl)
1129
1123
php_openssl_request_object_handlers .get_constructor = php_openssl_request_get_constructor ;
1130
1124
php_openssl_request_object_handlers .clone_obj = NULL ;
1131
1125
1132
- zend_class_entry key_ce ;
1133
- INIT_CLASS_ENTRY (key_ce , "OpenSSLAsymmetricKey" , class_OpenSSLAsymmetricKey_methods );
1134
- php_openssl_pkey_ce = zend_register_internal_class (& key_ce );
1135
- php_openssl_pkey_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
1126
+ php_openssl_pkey_ce = register_class_OpenSSLAsymmetricKey ();
1136
1127
php_openssl_pkey_ce -> create_object = php_openssl_pkey_create_object ;
1137
1128
php_openssl_pkey_ce -> serialize = zend_class_serialize_deny ;
1138
1129
php_openssl_pkey_ce -> unserialize = zend_class_unserialize_deny ;
0 commit comments