cvs: ZendEngine2 / zend.c

From: Date: Mon, 29 Dec 2003 21:58:03 +0000
Subject: cvs: ZendEngine2 / zend.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2163@lists.php.net to get a copy of this message
helly Mon Dec 29 16:58:03 2003 EDT Modified files: /ZendEngine2 zend.c Log: Add missing notice Index: ZendEngine2/zend.c diff -u ZendEngine2/zend.c:1.261 ZendEngine2/zend.c:1.262 --- ZendEngine2/zend.c:1.261 Tue Dec 23 05:45:09 2003 +++ ZendEngine2/zend.c Mon Dec 29 16:58:03 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.c,v 1.261 2003/12/23 10:45:09 helly Exp $ */ +/* $Id: zend.c,v 1.262 2003/12/29 21:58:03 helly Exp $ */ #include "zend.h" #include "zend_extensions.h" @@ -231,6 +231,7 @@ if (zend_std_cast_object_tostring(expr, expr_copy, IS_STRING, 0 TSRMLS_CC) == SUCCESS) { break; } + zend_error(E_NOTICE, "Object of class %s could not be converted to string", Z_OBJCE_P(expr)->name); } else if (expr->value.obj.handlers->cast_object(expr, expr_copy, IS_STRING, 0 TSRMLS_CC) == SUCCESS) { break; }

« previous php.zend-engine.cvs (#2163) next »