diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-07-24 11:01:19 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-07-24 11:01:19 +0800 |
commit | a3a797dbd56a5b9f71eb2b5c82a5722314642640 (patch) | |
tree | 2cf468350127e0a1087e7a0832fa081a920dda90 /ext/reflection/php_reflection.c | |
parent | eaa8f497087aa17ae937408211df43bb7b1425f3 (diff) | |
download | php-git-a3a797dbd56a5b9f71eb2b5c82a5722314642640.tar.gz |
Fixed bug #72661 (ReflectionType::__toString crashes with iterable)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 0c9a8dbed1..ef04ecdb98 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3025,6 +3025,7 @@ ZEND_METHOD(reflection_type, __toString) case IS_LONG: RETURN_STRINGL("int", sizeof("int") - 1); case IS_DOUBLE: RETURN_STRINGL("float", sizeof("float") - 1); case IS_VOID: RETURN_STRINGL("void", sizeof("void") - 1); + case IS_ITERABLE: RETURN_STRINGL("iterable", sizeof("iterable") - 1); EMPTY_SWITCH_DEFAULT_CASE() } } |