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

From: Date: Sun, 05 Oct 2003 13:59:16 +0000
Subject: cvs: php-src /ext/standard file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-24056@lists.php.net to get a copy of this message
moriyoshi Sun Oct 5 09:59:16 2003 EDT Modified files: /php-src/ext/standard file.c Log: Fix the macro to prevent it from falling over in a mess Index: php-src/ext/standard/file.c diff -u php-src/ext/standard/file.c:1.361 php-src/ext/standard/file.c:1.362 --- php-src/ext/standard/file.c:1.361 Sat Oct 4 17:06:29 2003 +++ php-src/ext/standard/file.c Sun Oct 5 09:59:15 2003 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.361 2003/10/04 21:06:29 moriyoshi Exp $ */ +/* $Id: file.c,v 1.362 2003/10/05 13:59:15 moriyoshi Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -1714,7 +1714,7 @@ # define _php_mblen(ptr, len) 1 #else # if defined(_REENTRANT) && defined(HAVE_MBRLEN) && defined(HAVE_MBSTATE_T) -# define _php_mblen(ptr, len) (ptr == NULL ? mbsinit(&BG(mblen_state)): (int)mbrlen(ptr, len, &BG(mblen_state))) +# define _php_mblen(ptr, len) ((ptr) == NULL ? mbsinit(&BG(mblen_state)): (int)mbrlen(ptr, len, &BG(mblen_state))) # else # define _php_mblen(ptr, len) mblen(ptr, len) # endif

« previous php.cvs (#24056) next »