summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-07-24 11:01:19 +0800
committerXinchen Hui <laruence@gmail.com>2016-07-24 11:01:19 +0800
commita3a797dbd56a5b9f71eb2b5c82a5722314642640 (patch)
tree2cf468350127e0a1087e7a0832fa081a920dda90 /ext/reflection/php_reflection.c
parenteaa8f497087aa17ae937408211df43bb7b1425f3 (diff)
downloadphp-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.c1
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()
}
}