@@ -2678,15 +2678,15 @@ ZEND_API void zend_check_magic_method_implementation(const zend_class_entry *ce,
2678
2678
zend_check_magic_method_public (ce , fptr , error_type );
2679
2679
zend_check_magic_method_arg_type (0 , ce , fptr , error_type , MAY_BE_ARRAY );
2680
2680
zend_check_magic_method_return_type (ce , fptr , error_type , MAY_BE_OBJECT );
2681
- } else if (zend_string_equals_literal (lcname , "__invoke" )) {
2681
+ } else if (zend_string_equals (lcname , ZSTR_KNOWN ( ZEND_STR_MAGIC_INVOKE ) )) {
2682
2682
zend_check_magic_method_non_static (ce , fptr , error_type );
2683
2683
zend_check_magic_method_public (ce , fptr , error_type );
2684
- } else if (zend_string_equals_literal (lcname , "__sleep" )) {
2684
+ } else if (zend_string_equals (lcname , ZSTR_KNOWN ( ZEND_STR_SLEEP ) )) {
2685
2685
zend_check_magic_method_args (0 , ce , fptr , error_type );
2686
2686
zend_check_magic_method_non_static (ce , fptr , error_type );
2687
2687
zend_check_magic_method_public (ce , fptr , error_type );
2688
2688
zend_check_magic_method_return_type (ce , fptr , error_type , MAY_BE_ARRAY );
2689
- } else if (zend_string_equals_literal (lcname , "__wakeup" )) {
2689
+ } else if (zend_string_equals (lcname , ZSTR_KNOWN ( ZEND_STR_WAKEUP ) )) {
2690
2690
zend_check_magic_method_args (0 , ce , fptr , error_type );
2691
2691
zend_check_magic_method_non_static (ce , fptr , error_type );
2692
2692
zend_check_magic_method_public (ce , fptr , error_type );
0 commit comments