cvs: php-src /ext/standard string.c

From: Date: Mon, 27 Mar 2006 23:05:38 +0000
Subject: cvs: php-src /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-37546@lists.php.net to get a copy of this message
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);

« previous php.cvs (#37546) next »