diff options
author | Xinchen Hui <laruence@php.net> | 2014-05-13 14:05:28 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-05-13 14:05:28 +0800 |
commit | 075a6ced0a3cd91014ab28272a120eca660e31fa (patch) | |
tree | c4d81ed18861d14b47a554b70539c73b36e28130 /Zend/zend_API.c | |
parent | 7080131e7134425b828921eb8e36cb043e4c39b1 (diff) | |
download | php-git-075a6ced0a3cd91014ab28272a120eca660e31fa.tar.gz |
Save one type checking if the type is already string
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 6ef4c0b467..f1e9614a22 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -480,12 +480,12 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons } /* break omitted intentionally */ - case IS_STRING: case IS_LONG: case IS_DOUBLE: case IS_FALSE: case IS_TRUE: convert_to_string_ex(arg); + case IS_STRING: if (UNEXPECTED(Z_ISREF_P(arg))) { /* it's dangerous to return pointers to string buffer of referenced variable, because it can @@ -527,12 +527,12 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons } /* break omitted intentionally */ - case IS_STRING: case IS_LONG: case IS_DOUBLE: case IS_FALSE: case IS_TRUE: convert_to_string_ex(arg); + case IS_STRING: if (UNEXPECTED(Z_ISREF_P(arg))) { /* it's dangerous to return pointers to string buffer of referenced variable, because it can |