mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
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:
parent
96e0010f13
commit
921e5b47c5
4 changed files with 279 additions and 101 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue