diff options
author | Nuno Lopes <nlopess@php.net> | 2007-10-07 13:57:10 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2007-10-07 13:57:10 +0000 |
commit | 66a24c86a6bc9e4050cfb05e0d5c4e9bd460fdd5 (patch) | |
tree | 2a74262e48a372b9e4dc2e34592f12febc3a7b8c /ext/pcre/php_pcre.c | |
parent | 51051fc8bcbac6c5731d6cb958387186bafe843c (diff) | |
download | php-git-66a24c86a6bc9e4050cfb05e0d5c4e9bd460fdd5.tar.gz |
Fixed bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines)
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 1984a97277..ec36ac4763 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1528,7 +1528,7 @@ PHPAPI void php_pcre_split_impl(pcre_cache_entry *pce, char *subject, int subjec if (re_bump == NULL) { int dummy; - if ((re_bump = pcre_get_compiled_regex("/./u", &extra_bump, &dummy TSRMLS_CC)) == NULL) { + if ((re_bump = pcre_get_compiled_regex("/./us", &extra_bump, &dummy TSRMLS_CC)) == NULL) { RETURN_FALSE; } } |