mirror of
https://github.com/php/php-src.git
synced 2026-04-17 21:11:02 +02:00
Fixed bug #60174 (Notice when array in method prototype error)
this should also exists in ext/reflection. since the new warning of "array to string convert" is introduced in zend_make_printable_zval which is used in ext/reflection too
This commit is contained in:
@@ -3133,6 +3133,9 @@ static char * zend_get_function_declaration(zend_function *fptr TSRMLS_DC) /* {{
|
||||
*(offset++) = '.';
|
||||
}
|
||||
*(offset++) = '\'';
|
||||
} else if (Z_TYPE_P(zv) == IS_ARRAY) {
|
||||
memcpy(offset, "Array", 5);
|
||||
offset += 5;
|
||||
} else {
|
||||
zend_make_printable_zval(zv, &zv_copy, &use_copy);
|
||||
REALLOC_BUF_IF_EXCEED(buf, offset, length, Z_STRLEN(zv_copy));
|
||||
@@ -3155,7 +3158,7 @@ static char * zend_get_function_declaration(zend_function *fptr TSRMLS_DC) /* {{
|
||||
*(offset++) = ' ';
|
||||
}
|
||||
arg_info++;
|
||||
REALLOC_BUF_IF_EXCEED(buf, offset, length, 23);
|
||||
REALLOC_BUF_IF_EXCEED(buf, offset, length, 32);
|
||||
}
|
||||
}
|
||||
*(offset++) = ')';
|
||||
|
||||
Reference in New Issue
Block a user