1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00

Fixed wrong array to string convertion

This commit is contained in:
Xinchen Hui
2014-02-24 17:30:39 +08:00
parent 479b82c0d4
commit e687939f01

View File

@@ -248,7 +248,7 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop
case IS_ARRAY:
zend_error(E_NOTICE, "Array to string conversion");
// TODO: ??? use interned string
Z_STR_P(expr_copy) = STR_INIT("Array", 1, 0);
Z_STR_P(expr_copy) = STR_INIT("Array", sizeof("Array") - 1, 0);
break;
case IS_OBJECT:
{