From b548293b99b80654e73b85f7dc5f9da0f9eb44d7 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Tue, 22 Nov 2011 10:11:06 +0000 Subject: Fixed bug #60357 (__toString() method triggers E_NOTICE "Array to string conversion") --- ext/reflection/php_reflection.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/reflection/php_reflection.c') 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)); -- cgit v1.2.1