diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 8226cec9fedc6..a16518ef92747 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -535,7 +535,7 @@ ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC) /* {{ break; } case IS_ARRAY: - zend_error(E_NOTICE, "Array to string conversion"); + zend_error(E_RECOVERABLE_ERROR, "Array could not be converted to string"); zval_ptr_dtor(op); ZVAL_NEW_STR(op, zend_string_init("Array", sizeof("Array")-1, 0)); break; @@ -820,7 +820,7 @@ ZEND_API zend_string* ZEND_FASTCALL _zval_get_string_func(zval *op) /* {{{ */ return zend_strpprintf(0, "%.*G", (int) EG(precision), Z_DVAL_P(op)); } case IS_ARRAY: - zend_error(E_NOTICE, "Array to string conversion"); + zend_error(E_RECOVERABLE_ERROR, "Array could not be converted to string"); return zend_string_init("Array", sizeof("Array")-1, 0); case IS_OBJECT: { zval tmp;