summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2011-11-22 10:11:06 +0000
committerXinchen Hui <laruence@php.net>2011-11-22 10:11:06 +0000
commitb548293b99b80654e73b85f7dc5f9da0f9eb44d7 (patch)
tree6e2771a5e7b31d95c4fc65bbc137b8dc0a2c52f3 /ext/reflection/php_reflection.c
parentecc6c335c534db08e84e7f502bea7b6cfe7a3212 (diff)
downloadphp-git-b548293b99b80654e73b85f7dc5f9da0f9eb44d7.tar.gz
Fixed bug #60357 (__toString() method triggers E_NOTICE "Array to string conversion")
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index a6339fa56f..1e0386a601 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -746,6 +746,8 @@ static void _parameter_string(string *str, zend_function *fptr, struct _zend_arg
string_write(str, "...", sizeof("...")-1);
}
string_write(str, "'", sizeof("'")-1);
+ } else if (Z_TYPE_P(zv) == IS_ARRAY) {
+ string_write(str, "Array", sizeof("Array")-1);
} else {
zend_make_printable_zval(zv, &zv_copy, &use_copy);
string_write(str, Z_STRVAL(zv_copy), Z_STRLEN(zv_copy));