Skip to content

Commit cb94096

Browse files
committed
Repl zend_type_error w/ zend_value_error if possible
1 parent 4a96aa9 commit cb94096

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: ext/compatibility.h

+1
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ static zend_always_inline void zend_array_release(zend_array *array)
312312
}
313313

314314
#define ZEND_ARG_SEND_MODE(arg_info) (arg_info)->pass_by_reference
315+
#define zend_value_error zend_type_error
315316
#endif
316317

317318
#if PHP_VERSION_ID < 80100

Diff for: ext/user_request.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ PHP_FUNCTION(DDTrace_UserRequest_notify_commit)
124124
}
125125

126126
if (status < 100 || status > 599) {
127-
zend_type_error("Status code must be between 100 and 599");
127+
zend_value_error("Status code must be between 100 and 599");
128128
return;
129129
}
130130

0 commit comments

Comments
 (0)