Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c
| From: | Andi Gutmans | Date: | Thu, 06 Nov 2003 21:06:11 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-1963@lists.php.net to get a copy of this message | ||
Any idea why this fixes the bug? E_NOTICE isn't accessing the variable nor does it bailout.
What am I missing?
At 08:33 PM 11/6/2003 +0000, Ilia Alshanetsky wrote:
iliaa Thu Nov 6 15:33:47 2003 EDTModified files:/ZendEngine2 zend_operators.cLog: Fixed bug #26148 (Print the notice before modifying variable on type mismatch). # This only crashes in ZE1, however logic dictates that it may also crash # in ZE2 because variable does not have a correct type. Patch by: morten-bugs dot php dot net at afdelingp dot dk Index: ZendEngine2/zend_operators.c diff -u ZendEngine2/zend_operators.c:1.164 ZendEngine2/zend_operators.c:1.165 --- ZendEngine2/zend_operators.c:1.164 Thu Sep 18 07:50:05 2003+++ ZendEngine2/zend_operators.c Thu Nov 6 15:33:47 2003@@ -17,7 +17,7 @@+----------------------------------------------------------------------+*/ -/* $Id: zend_operators.c,v 1.164 2003/09/18 11:50:05 helly Exp $ */ +/* $Id: zend_operators.c,v 1.165 2003/11/06 20:33:47 iliaa Exp $ */ #include <ctype.h> @@ -485,10 +485,10 @@break; } case IS_ARRAY: + zend_error(E_NOTICE, "Array to string conversion"); 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: if (op->value.obj.handlers->cast_object) {-- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php