mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fix bug #27103 (preg_split('//u') incorrectly splits UTF-8 strings into octets).
This commit is contained in:
parent
8e44a6ba0a
commit
0330fb2cbf
3 changed files with 44 additions and 6 deletions
|
@ -43,6 +43,7 @@ PHP_FUNCTION(preg_grep);
|
|||
|
||||
PHPAPI char *php_pcre_replace(char *regex, int regex_len, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int *result_len, int limit TSRMLS_DC);
|
||||
PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *options TSRMLS_DC);
|
||||
PHPAPI pcre* pcre_get_compiled_regex_ex(char *regex, pcre_extra **extra, int *preg_options, int *coptions TSRMLS_DC);
|
||||
|
||||
extern zend_module_entry pcre_module_entry;
|
||||
#define pcre_module_ptr &pcre_module_entry
|
||||
|
@ -51,6 +52,7 @@ typedef struct {
|
|||
pcre *re;
|
||||
pcre_extra *extra;
|
||||
int preg_options;
|
||||
int compile_options;
|
||||
#if HAVE_SETLOCALE
|
||||
char *locale;
|
||||
unsigned const char *tables;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue