cvs: ZendEngine2 / zend_operators.c

From: Date: Thu, 06 Nov 2003 20:33:47 +0000
Subject: cvs: ZendEngine2 / zend_operators.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1961@lists.php.net to get a copy of this message
iliaa Thu Nov 6 15:33:47 2003 EDT Modified files: /ZendEngine2 zend_operators.c Log: 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) {

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