@@ -3114,7 +3114,7 @@ static zend_always_inline int zend_is_callable_check_func(int check_flags, zval
31143114 fcc -> function_handler = zend_get_call_trampoline_func (ce_org , mname , 0 );
31153115 call_via_handler = 1 ;
31163116 retval = 1 ;
3117- } else if ( fcc -> object -> handlers -> get_method ) {
3117+ } else {
31183118 fcc -> function_handler = fcc -> object -> handlers -> get_method (& fcc -> object , mname , NULL );
31193119 if (fcc -> function_handler ) {
31203120 if (strict_class &&
@@ -3935,9 +3935,6 @@ ZEND_API void zend_update_property_ex(zend_class_entry *scope, zval *object, zen
39353935
39363936 EG (fake_scope ) = scope ;
39373937
3938- if (!Z_OBJ_HT_P (object )-> write_property ) {
3939- zend_error_noreturn (E_CORE_ERROR , "Property %s of class %s cannot be updated" , ZSTR_VAL (name ), ZSTR_VAL (Z_OBJCE_P (object )-> name ));
3940- }
39413938 ZVAL_STR (& property , name );
39423939 Z_OBJ_HT_P (object )-> write_property (object , & property , value , NULL );
39433940
@@ -3952,9 +3949,6 @@ ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, const
39523949
39533950 EG (fake_scope ) = scope ;
39543951
3955- if (!Z_OBJ_HT_P (object )-> write_property ) {
3956- zend_error_noreturn (E_CORE_ERROR , "Property %s of class %s cannot be updated" , name , ZSTR_VAL (Z_OBJCE_P (object )-> name ));
3957- }
39583952 ZVAL_STRINGL (& property , name , name_length );
39593953 Z_OBJ_HT_P (object )-> write_property (object , & property , value , NULL );
39603954 zval_ptr_dtor (& property );
@@ -3979,9 +3973,6 @@ ZEND_API void zend_unset_property(zend_class_entry *scope, zval *object, const c
39793973
39803974 EG (fake_scope ) = scope ;
39813975
3982- if (!Z_OBJ_HT_P (object )-> unset_property ) {
3983- zend_error_noreturn (E_CORE_ERROR , "Property %s of class %s cannot be unset" , name , ZSTR_VAL (Z_OBJCE_P (object )-> name ));
3984- }
39853976 ZVAL_STRINGL (& property , name , name_length );
39863977 Z_OBJ_HT_P (object )-> unset_property (object , & property , 0 );
39873978 zval_ptr_dtor (& property );
@@ -4143,10 +4134,6 @@ ZEND_API zval *zend_read_property_ex(zend_class_entry *scope, zval *object, zend
41434134
41444135 EG (fake_scope ) = scope ;
41454136
4146- if (!Z_OBJ_HT_P (object )-> read_property ) {
4147- zend_error_noreturn (E_CORE_ERROR , "Property %s of class %s cannot be read" , ZSTR_VAL (name ), ZSTR_VAL (Z_OBJCE_P (object )-> name ));
4148- }
4149-
41504137 ZVAL_STR (& property , name );
41514138 value = Z_OBJ_HT_P (object )-> read_property (object , & property , silent ?BP_VAR_IS :BP_VAR_R , NULL , rv );
41524139
0 commit comments