@@ -246,7 +246,7 @@ ZEND_API int zend_copy_parameters_array(int param_count, zval *argument_array);
246
246
#define zend_get_parameters_array_ex (param_count , argument_array ) \
247
247
_zend_get_parameters_array_ex(param_count, argument_array)
248
248
#define zend_parse_parameters_none () \
249
- (EXPECTED(ZEND_NUM_ARGS() == 0) ? SUCCESS : zend_wrong_parameters_none_exception ())
249
+ (EXPECTED(ZEND_NUM_ARGS() == 0) ? SUCCESS : zend_wrong_parameters_none_error ())
250
250
#define zend_parse_parameters_none_throw () \
251
251
zend_parse_parameters_none()
252
252
@@ -956,11 +956,11 @@ typedef enum _zend_expected_type {
956
956
Z_EXPECTED_LAST
957
957
} zend_expected_type ;
958
958
959
- ZEND_API ZEND_COLD int ZEND_FASTCALL zend_wrong_parameters_none_exception (void );
960
- ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameters_count_exception (int min_num_args , int max_num_args );
961
- ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_type_exception (int num , zend_expected_type expected_type , zval * arg );
962
- ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_exception (int num , char * name , zval * arg );
963
- ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception (int num , char * error );
959
+ ZEND_API ZEND_COLD int ZEND_FASTCALL zend_wrong_parameters_none_error (void );
960
+ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameters_count_error (int min_num_args , int max_num_args );
961
+ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_type_error (int num , zend_expected_type expected_type , zval * arg );
962
+ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_error (int num , char * name , zval * arg );
963
+ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_error (int num , char * error );
964
964
965
965
#define ZPP_ERROR_OK 0
966
966
#define ZPP_ERROR_FAILURE 1
@@ -994,7 +994,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
994
994
(UNEXPECTED(_num_args > _max_num_args) && \
995
995
EXPECTED(_max_num_args >= 0))) { \
996
996
if (!(_flags & ZEND_PARSE_PARAMS_QUIET)) { \
997
- zend_wrong_parameters_count_exception (_min_num_args, _max_num_args); \
997
+ zend_wrong_parameters_count_error (_min_num_args, _max_num_args); \
998
998
} \
999
999
_error_code = ZPP_ERROR_FAILURE; \
1000
1000
break; \
@@ -1007,7 +1007,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
1007
1007
1008
1008
#define ZEND_PARSE_PARAMETERS_NONE () do { \
1009
1009
if (UNEXPECTED(ZEND_NUM_ARGS() != 0)) { \
1010
- zend_wrong_parameters_none_exception (); \
1010
+ zend_wrong_parameters_none_error (); \
1011
1011
return; \
1012
1012
} \
1013
1013
} while (0)
@@ -1017,11 +1017,11 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_exception(int num, cha
1017
1017
if (UNEXPECTED(_error_code != ZPP_ERROR_OK)) { \
1018
1018
if (!(_flags & ZEND_PARSE_PARAMS_QUIET)) { \
1019
1019
if (_error_code == ZPP_ERROR_WRONG_CALLBACK) { \
1020
- zend_wrong_callback_exception (_i, _error); \
1020
+ zend_wrong_callback_error (_i, _error); \
1021
1021
} else if (_error_code == ZPP_ERROR_WRONG_CLASS) { \
1022
- zend_wrong_parameter_class_exception (_i, _error, _arg); \
1022
+ zend_wrong_parameter_class_error (_i, _error, _arg); \
1023
1023
} else if (_error_code == ZPP_ERROR_WRONG_ARG) { \
1024
- zend_wrong_parameter_type_exception (_i, _expected_type, _arg); \
1024
+ zend_wrong_parameter_type_error (_i, _expected_type, _arg); \
1025
1025
} \
1026
1026
} \
1027
1027
failure; \
0 commit comments