Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

From: Date: Mon, 30 Apr 2007 15:33:33 +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-5760@lists.php.net to get a copy of this message
Tony, this is wrong. If the user is concatenating two binary strings in Unicode mode, we should leave the result as binary. Could you please revert this? -Andrei On Apr 28, 2007, at 5:04 AM, Antony Dovgal wrote:
tony2001 Sat Apr 28 12:04:43 2007 UTC Modified files:
    /ZendEngine2	zend_operators.c
Log: convert non-strings to unicode in unicode mode http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_operators.c?r1=1.270&r2=1.271&diff_format=u Index: ZendEngine2/zend_operators.c diff -u ZendEngine2/zend_operators.c:1.270 ZendEngine2/zend_operators.c:1.271 --- ZendEngine2/zend_operators.c:1.270 Fri Apr 27 21:27:14 2007 +++ ZendEngine2/zend_operators.c Sat Apr 28 12:04:43 2007 @@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
*/ -/* $Id: zend_operators.c,v 1.270 2007/04/27 21:27:14 tony2001 Exp $ */ +/* $Id: zend_operators.c,v 1.271 2007/04/28 12:04:43 tony2001 Exp $ */ #include <ctype.h> @@ -1697,7 +1697,7 @@ int use_copy1, use_copy2; zend_uchar result_type; - if (Z_TYPE_P(op1) == IS_UNICODE || Z_TYPE_P(op2) == IS_UNICODE) { + if (Z_TYPE_P(op1) == IS_UNICODE || Z_TYPE_P(op2) == IS_UNICODE || UG(unicode)) { zend_make_unicode_zval(op1, &op1_copy, &use_copy1); zend_make_unicode_zval(op2, &op2_copy, &use_copy2); result_type = IS_UNICODE; --Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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