summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-03-20 16:04:04 +0300
committerDmitry Stogov <dmitry@zend.com>2015-03-20 16:04:04 +0300
commit59356126664584e0a67128acad161f8bd86381fa (patch)
tree65c26e29d8d953ef34217ecc09745dcdc3abc0f2 /Zend/zend_API.h
parent44669e8f418708a3107fd797892d4e4e0aca1116 (diff)
downloadphp-git-59356126664584e0a67128acad161f8bd86381fa.tar.gz
Improved type hinting:
EX_PREV_USES_STRICT_TYPES() and family changed/renamed to fit with other macros Optimized zend_verify_internal_arg_type() and family (they don't need "strict" argument anymore) Standerd ZPP is called from VM only for weak type check or strict exception (int -> double) Fixed ZEND_RECV_VARIADIC Fixed ZEND_STRLEN TODO: should we accept IS_NULL for non-nullable arguments?
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index e0f39e98a2..4da7002477 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -720,7 +720,7 @@ ZEND_API void zend_wrong_callback_error(int severity, int num, char *error, zend
#define ZPP_ERROR_WRONG_COUNT 5
#define ZEND_PARSE_PARAMETERS_START_EX(flags, min_num_args, max_num_args) do { \
- zend_bool _strict = EX_PREV_USES_STRICT_TYPES(); \
+ zend_bool _strict = ZEND_ARG_USES_STRICT_TYPES(); \
const int _flags = (flags) | (_strict ? ZEND_PARSE_PARAMS_STRICT : 0); \
int _min_num_args = (min_num_args); \
int _max_num_args = (max_num_args); \