From: Stanislav Malyshev Date: Mon, 18 Dec 2000 08:47:17 +0000 (+0000) Subject: Add notice when auto-converting array to string X-Git-Tag: php-4.0.5RC1~866 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=138ea941fa0be925c77863ee20f41115b4193fac;p=php Add notice when auto-converting array to string --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index a0fbe9917b..df394a7df4 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -426,11 +426,13 @@ ZEND_API void _convert_to_string(zval *op ZEND_FILE_LINE_DC) zval_dtor(op); op->value.str.val = estrndup_rel("Array",sizeof("Array")-1); op->value.str.len = sizeof("Array")-1; + zend_error(E_NOTICE, "Array to string conversion"); break; case IS_OBJECT: zval_dtor(op); op->value.str.val = estrndup_rel("Object",sizeof("Object")-1); op->value.str.len = sizeof("Object")-1; + zend_error(E_NOTICE, "Object to string conversion"); break; default: zval_dtor(op);