cvs: ZendEngine2 / zend_operators.c

From: Date: Fri, 29 Oct 2004 00:55:12 +0000
Subject: cvs: ZendEngine2 / zend_operators.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3120@lists.php.net to get a copy of this message
andi Thu Oct 28 20:55:12 2004 EDT Modified files: /ZendEngine2 zend_operators.c Log: - For Ilia: - MFH: Fixed bug #30572 (crash when comparing SimpleXML attribute to a boolean). - Hope this works well. I will MFH tomorrow if no one complains. http://cvs.php.net/diff.php/ZendEngine2/zend_operators.c?r1=1.200&r2=1.201&ty=u Index: ZendEngine2/zend_operators.c diff -u ZendEngine2/zend_operators.c:1.200 ZendEngine2/zend_operators.c:1.201 --- ZendEngine2/zend_operators.c:1.200 Wed Oct 27 14:15:03 2004 +++ ZendEngine2/zend_operators.c Thu Oct 28 20:55:11 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_operators.c,v 1.200 2004/10/27 18:15:03 andi Exp $ */ +/* $Id: zend_operators.c,v 1.201 2004/10/29 00:55:11 andi Exp $ */ #include <ctype.h> @@ -140,7 +140,7 @@ } #define zendi_convert_scalar_to_number(op, holder, result) \ - if (op==result) { \ + if (op==result || op->refcount == 0) { \ if (op->type != IS_LONG) { \ convert_scalar_to_number(op TSRMLS_CC); \ } \ @@ -194,7 +194,7 @@ } while (0) #define zendi_convert_to_long(op, holder, result) \ - if (op==result) { \ + if (op == result || op->refcount == 0) { \ convert_to_long(op); \ } else if ((op)->type != IS_LONG) { \ switch ((op)->type) { \ @@ -230,7 +230,7 @@ #define zendi_convert_to_boolean(op, holder, result) \ - if (op==result) { \ + if (op==result || op->refcount == 0) { \ convert_to_boolean(op); \ } else if ((op)->type != IS_BOOL) { \ switch ((op)->type) { \

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