cvs: ZendEngine2 / zend_operators.c

From: Date: Thu, 09 Feb 2006 23:23:02 +0000
Subject: cvs: ZendEngine2 / zend_operators.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4578@lists.php.net to get a copy of this message
andrei Thu Feb 9 23:23:02 2006 UTC Modified files: /ZendEngine2 zend_operators.c Log: We already have default collator available. http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_operators.c?r1=1.229&r2=1.230&diff_format=u Index: ZendEngine2/zend_operators.c diff -u ZendEngine2/zend_operators.c:1.229 ZendEngine2/zend_operators.c:1.230 --- ZendEngine2/zend_operators.c:1.229 Sun Feb 5 20:54:11 2006 +++ ZendEngine2/zend_operators.c Thu Feb 9 23:23:02 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_operators.c,v 1.229 2006/02/05 20:54:11 andrei Exp $ */ +/* $Id: zend_operators.c,v 1.230 2006/02/09 23:23:02 andrei Exp $ */ #include <ctype.h> @@ -1462,8 +1462,6 @@ UErrorCode status = U_ZERO_ERROR; UCollator *col; - col = ucol_open(UG(default_locale), &status); - zend_make_unicode_zval(op1, &op1_copy, &use_copy1); zend_make_unicode_zval(op2, &op2_copy, &use_copy2); @@ -1474,7 +1472,7 @@ op2 = &op2_copy; } - result->value.lval = ucol_strcoll(col, op1->value.ustr.val, op1->value.ustr.len, op2->value.ustr.val, op2->value.ustr.len); + result->value.lval = ucol_strcoll(UG(default_collator), op1->value.ustr.val, op1->value.ustr.len, op2->value.ustr.val, op2->value.ustr.len); result->type = IS_LONG; if (use_copy1) { @@ -1484,8 +1482,6 @@ zval_dtor(op2); } - ucol_close(col); - return SUCCESS; }

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