]> granicus.if.org Git - php/commitdiff
Needs to use .ustr. portion of the union for IS_UNICODE.
authorAndrei Zmievski <andrei@php.net>
Sun, 5 Feb 2006 20:54:11 +0000 (20:54 +0000)
committerAndrei Zmievski <andrei@php.net>
Sun, 5 Feb 2006 20:54:11 +0000 (20:54 +0000)
Zend/zend_operators.c

index a6c0bbd95b53fecd99b8d2d99b3464d8a1c8b006..ba5dab69222f82db9314e10ee4e0be07b7a58abb 100644 (file)
@@ -1474,7 +1474,7 @@ ZEND_API int string_locale_compare_function(zval *result, zval *op1, zval *op2 T
                op2 = &op2_copy;
        }
 
-       result->value.lval = ucol_strcoll(col, (void*)op1->value.str.val, op1->value.str.len, (void*)op2->value.str.val, op2->value.str.len);
+       result->value.lval = ucol_strcoll(col, op1->value.ustr.val, op1->value.ustr.len, op2->value.ustr.val, op2->value.ustr.len);
        result->type = IS_LONG;
 
        if (use_copy1) {