andrei          Mon Mar 27 23:05:38 2006 UTC

  Modified files:              
    /php-src/ext/standard       string.c 
  Log:
  Fix UErrorCode check.
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/string.c?r1=1.535&r2=1.536&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.535 php-src/ext/standard/string.c:1.536
--- php-src/ext/standard/string.c:1.535 Mon Mar 27 06:02:42 2006
+++ php-src/ext/standard/string.c       Mon Mar 27 23:05:38 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.535 2006/03/27 06:02:42 dmitry Exp $ */
+/* $Id: string.c,v 1.536 2006/03/27 23:05:38 andrei Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -675,7 +675,7 @@
                *range = (UChar *)erealloc(*range, (len+1)*sizeof(UChar));
                err = U_ZERO_ERROR;
                u_strFromUTF32(*range, len+1, &len, tmp, tmp_len, &err);
-               if ( U_FAILURE(err) == U_BUFFER_OVERFLOW_ERROR ) {
+               if ( err == U_BUFFER_OVERFLOW_ERROR ) {
                        err = U_ZERO_ERROR;
                        *range = (UChar *)erealloc(*range, 
(len+1)*sizeof(UChar));
                        u_strFromUTF32(*range, len+1, NULL, tmp, tmp_len, &err);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to