@@ -726,7 +726,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
726
726
char *_error = NULL; \
727
727
zend_bool _dummy; \
728
728
zend_bool _optional = 0; \
729
- int error_code = ZPP_ERROR_OK; \
729
+ int _error_code = ZPP_ERROR_OK; \
730
730
((void)_i); \
731
731
((void)_real_arg); \
732
732
((void)_arg); \
@@ -746,7 +746,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
746
746
zend_wrong_parameters_count_error(_min_num_args, _max_num_args); \
747
747
} \
748
748
} \
749
- error_code = ZPP_ERROR_FAILURE; \
749
+ _error_code = ZPP_ERROR_FAILURE; \
750
750
break; \
751
751
} \
752
752
_i = 0; \
@@ -764,21 +764,21 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
764
764
765
765
#define ZEND_PARSE_PARAMETERS_END_EX (failure ) \
766
766
} while (0); \
767
- if (UNEXPECTED(error_code != ZPP_ERROR_OK)) { \
767
+ if (UNEXPECTED(_error_code != ZPP_ERROR_OK)) { \
768
768
if (!(_flags & ZEND_PARSE_PARAMS_QUIET)) { \
769
- if (error_code == ZPP_ERROR_WRONG_CALLBACK) { \
769
+ if (_error_code == ZPP_ERROR_WRONG_CALLBACK) { \
770
770
if (_flags & ZEND_PARSE_PARAMS_THROW) { \
771
771
zend_wrong_callback_exception(_i, _error); \
772
772
} else { \
773
773
zend_wrong_callback_error(_i, _error); \
774
774
} \
775
- } else if (error_code == ZPP_ERROR_WRONG_CLASS) { \
775
+ } else if (_error_code == ZPP_ERROR_WRONG_CLASS) { \
776
776
if (_flags & ZEND_PARSE_PARAMS_THROW) { \
777
777
zend_wrong_parameter_class_exception(_i, _error, _arg); \
778
778
} else { \
779
779
zend_wrong_parameter_class_error(_i, _error, _arg); \
780
780
} \
781
- } else if (error_code == ZPP_ERROR_WRONG_ARG) { \
781
+ } else if (_error_code == ZPP_ERROR_WRONG_ARG) { \
782
782
if (_flags & ZEND_PARSE_PARAMS_THROW) { \
783
783
zend_wrong_parameter_type_exception(_i, _expected_type, _arg); \
784
784
} else { \
@@ -818,7 +818,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
818
818
Z_PARAM_PROLOGUE(deref, separate); \
819
819
if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 0))) { \
820
820
_expected_type = Z_EXPECTED_ARRAY; \
821
- error_code = ZPP_ERROR_WRONG_ARG; \
821
+ _error_code = ZPP_ERROR_WRONG_ARG; \
822
822
break; \
823
823
}
824
824
@@ -833,7 +833,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
833
833
Z_PARAM_PROLOGUE(deref, separate); \
834
834
if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 1))) { \
835
835
_expected_type = Z_EXPECTED_ARRAY; \
836
- error_code = ZPP_ERROR_WRONG_ARG; \
836
+ _error_code = ZPP_ERROR_WRONG_ARG; \
837
837
break; \
838
838
}
839
839
@@ -848,7 +848,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
848
848
Z_PARAM_PROLOGUE(deref, separate); \
849
849
if (UNEXPECTED(!zend_parse_arg_bool(_arg, &dest, &is_null, check_null))) { \
850
850
_expected_type = Z_EXPECTED_BOOL; \
851
- error_code = ZPP_ERROR_WRONG_ARG; \
851
+ _error_code = ZPP_ERROR_WRONG_ARG; \
852
852
break; \
853
853
}
854
854
@@ -862,7 +862,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
862
862
#define Z_PARAM_CLASS_EX2 (dest , check_null , deref , separate ) \
863
863
Z_PARAM_PROLOGUE(deref, separate); \
864
864
if (UNEXPECTED(!zend_parse_arg_class(_arg, &dest, _i, check_null))) { \
865
- error_code = ZPP_ERROR_FAILURE; \
865
+ _error_code = ZPP_ERROR_FAILURE; \
866
866
break; \
867
867
}
868
868
@@ -877,7 +877,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
877
877
Z_PARAM_PROLOGUE(deref, separate); \
878
878
if (UNEXPECTED(!zend_parse_arg_double(_arg, &dest, &is_null, check_null))) { \
879
879
_expected_type = Z_EXPECTED_DOUBLE; \
880
- error_code = ZPP_ERROR_WRONG_ARG; \
880
+ _error_code = ZPP_ERROR_WRONG_ARG; \
881
881
break; \
882
882
}
883
883
@@ -893,10 +893,10 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
893
893
if (UNEXPECTED(!zend_parse_arg_func(_arg, &dest_fci, &dest_fcc, check_null, &_error))) { \
894
894
if (!_error) { \
895
895
_expected_type = Z_EXPECTED_FUNC; \
896
- error_code = ZPP_ERROR_WRONG_ARG; \
896
+ _error_code = ZPP_ERROR_WRONG_ARG; \
897
897
break; \
898
898
} else { \
899
- error_code = ZPP_ERROR_WRONG_CALLBACK; \
899
+ _error_code = ZPP_ERROR_WRONG_CALLBACK; \
900
900
break; \
901
901
} \
902
902
} else if (UNEXPECTED(_error != NULL)) { \
@@ -914,7 +914,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
914
914
Z_PARAM_PROLOGUE(deref, separate); \
915
915
if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 0, separate))) { \
916
916
_expected_type = Z_EXPECTED_ARRAY; \
917
- error_code = ZPP_ERROR_WRONG_ARG; \
917
+ _error_code = ZPP_ERROR_WRONG_ARG; \
918
918
break; \
919
919
}
920
920
@@ -929,7 +929,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
929
929
Z_PARAM_PROLOGUE(deref, separate); \
930
930
if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 1, separate))) { \
931
931
_expected_type = Z_EXPECTED_ARRAY; \
932
- error_code = ZPP_ERROR_WRONG_ARG; \
932
+ _error_code = ZPP_ERROR_WRONG_ARG; \
933
933
break; \
934
934
}
935
935
@@ -944,7 +944,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
944
944
Z_PARAM_PROLOGUE(deref, separate); \
945
945
if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 0))) { \
946
946
_expected_type = Z_EXPECTED_LONG; \
947
- error_code = ZPP_ERROR_WRONG_ARG; \
947
+ _error_code = ZPP_ERROR_WRONG_ARG; \
948
948
break; \
949
949
}
950
950
@@ -959,7 +959,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
959
959
Z_PARAM_PROLOGUE(deref, separate); \
960
960
if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 1))) { \
961
961
_expected_type = Z_EXPECTED_LONG; \
962
- error_code = ZPP_ERROR_WRONG_ARG; \
962
+ _error_code = ZPP_ERROR_WRONG_ARG; \
963
963
break; \
964
964
}
965
965
@@ -974,7 +974,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
974
974
Z_PARAM_PROLOGUE(deref, separate); \
975
975
if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, NULL, check_null))) { \
976
976
_expected_type = Z_EXPECTED_OBJECT; \
977
- error_code = ZPP_ERROR_WRONG_ARG; \
977
+ _error_code = ZPP_ERROR_WRONG_ARG; \
978
978
break; \
979
979
}
980
980
@@ -990,11 +990,11 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
990
990
if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, _ce, check_null))) { \
991
991
if (_ce) { \
992
992
_error = ZSTR_VAL((_ce)->name); \
993
- error_code = ZPP_ERROR_WRONG_CLASS; \
993
+ _error_code = ZPP_ERROR_WRONG_CLASS; \
994
994
break; \
995
995
} else { \
996
996
_expected_type = Z_EXPECTED_OBJECT; \
997
- error_code = ZPP_ERROR_WRONG_ARG; \
997
+ _error_code = ZPP_ERROR_WRONG_ARG; \
998
998
break; \
999
999
} \
1000
1000
}
@@ -1010,7 +1010,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
1010
1010
Z_PARAM_PROLOGUE(deref, separate); \
1011
1011
if (UNEXPECTED(!zend_parse_arg_path(_arg, &dest, &dest_len, check_null))) { \
1012
1012
_expected_type = Z_EXPECTED_PATH; \
1013
- error_code = ZPP_ERROR_WRONG_ARG; \
1013
+ _error_code = ZPP_ERROR_WRONG_ARG; \
1014
1014
break; \
1015
1015
}
1016
1016
@@ -1025,7 +1025,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
1025
1025
Z_PARAM_PROLOGUE(deref, separate); \
1026
1026
if (UNEXPECTED(!zend_parse_arg_path_str(_arg, &dest, check_null))) { \
1027
1027
_expected_type = Z_EXPECTED_PATH; \
1028
- error_code = ZPP_ERROR_WRONG_ARG; \
1028
+ _error_code = ZPP_ERROR_WRONG_ARG; \
1029
1029
break; \
1030
1030
}
1031
1031
@@ -1040,7 +1040,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
1040
1040
Z_PARAM_PROLOGUE(deref, separate); \
1041
1041
if (UNEXPECTED(!zend_parse_arg_resource(_arg, &dest, check_null))) { \
1042
1042
_expected_type = Z_EXPECTED_RESOURCE; \
1043
- error_code = ZPP_ERROR_WRONG_ARG; \
1043
+ _error_code = ZPP_ERROR_WRONG_ARG; \
1044
1044
break; \
1045
1045
}
1046
1046
@@ -1055,7 +1055,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
1055
1055
Z_PARAM_PROLOGUE(deref, separate); \
1056
1056
if (UNEXPECTED(!zend_parse_arg_string(_arg, &dest, &dest_len, check_null))) { \
1057
1057
_expected_type = Z_EXPECTED_STRING; \
1058
- error_code = ZPP_ERROR_WRONG_ARG; \
1058
+ _error_code = ZPP_ERROR_WRONG_ARG; \
1059
1059
break; \
1060
1060
}
1061
1061
@@ -1070,7 +1070,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
1070
1070
Z_PARAM_PROLOGUE(deref, separate); \
1071
1071
if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null))) { \
1072
1072
_expected_type = Z_EXPECTED_STRING; \
1073
- error_code = ZPP_ERROR_WRONG_ARG; \
1073
+ _error_code = ZPP_ERROR_WRONG_ARG; \
1074
1074
break; \
1075
1075
}
1076
1076
0 commit comments