@@ -2342,16 +2342,16 @@ static const zend_function_entry disabled_class_new[] = {
2342
2342
2343
2343
ZEND_API int zend_disable_class (char * class_name , uint class_name_length TSRMLS_DC ) /* {{{ */
2344
2344
{
2345
- zend_class_entry disabled_class ;
2345
+ zend_class_entry * * disabled_class ;
2346
2346
2347
2347
zend_str_tolower (class_name , class_name_length );
2348
- if (zend_hash_del (CG (class_table ), class_name , class_name_length + 1 )== FAILURE ) {
2348
+ if (zend_hash_find (CG (class_table ), class_name , class_name_length + 1 , ( void * * ) & disabled_class )== FAILURE ) {
2349
2349
return FAILURE ;
2350
2350
}
2351
- INIT_OVERLOADED_CLASS_ENTRY_EX ( disabled_class , class_name , class_name_length , disabled_class_new , NULL , NULL , NULL , NULL , NULL );
2352
- disabled_class . create_object = display_disabled_class ;
2353
- disabled_class . name_length = class_name_length ;
2354
- zend_register_internal_class ( & disabled_class TSRMLS_CC );
2351
+ INIT_CLASS_ENTRY_INIT_METHODS (( * * disabled_class ) , disabled_class_new , NULL , NULL , NULL , NULL , NULL );
2352
+ ( * disabled_class ) -> create_object = display_disabled_class ;
2353
+ ( * disabled_class ) -> builtin_functions = disabled_class_new ;
2354
+ zend_hash_clean ( & (( * disabled_class ) -> function_table ) );
2355
2355
return SUCCESS ;
2356
2356
}
2357
2357
/* }}} */
@@ -2425,7 +2425,6 @@ static int zend_is_callable_check_class(const char *name, int name_len, zend_fca
2425
2425
}
2426
2426
/* }}} */
2427
2427
2428
-
2429
2428
static int zend_is_callable_check_func (int check_flags , zval * callable , zend_fcall_info_cache * fcc , int strict_class , char * * error TSRMLS_DC ) /* {{{ */
2430
2429
{
2431
2430
zend_class_entry * ce_org = fcc -> calling_scope ;
0 commit comments