Fix fgetcsv() to correctly support international characters

# note: mblen() is not a mbstring function, but is part of the ANSI standard
# which is even supported by Microsoft's libc.
This commit is contained in:
Moriyoshi Koizumi 2003-10-04 02:51:19 +00:00
parent 96e0010f13
commit 921e5b47c5
4 changed files with 279 additions and 101 deletions

View file

@ -24,6 +24,10 @@
#include <sys/stat.h>
#ifdef HAVE_WCHAR_H
#include <wchar.h>
#endif
#include "zend_highlight.h"
#include "url_scanner.h"
@ -199,6 +203,11 @@ typedef struct _php_basic_globals {
#endif
HashTable *user_filter_map;
/* file.c */
#if defined(_REENTRANT) && defined(HAVE_MBRLEN) && defined(HAVE_MBSTATE_T)
mbstate_t mblen_state;
#endif
} php_basic_globals;
#ifdef ZTS