RE: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-25 Thread Anatol Belski
.php.net> > Subject: Re: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion > > On 21/02/16 11:42, Anatol Belski wrote: > > Were you putting the snippets into a file or testing on the console? I > > had an issue while testing this on the console, that some chars w

Re: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-25 Thread Ángel González
On 21/02/16 11:42, Anatol Belski wrote: Were you putting the snippets into a file or testing on the console? I had an issue while testing this on the console, that some chars was partially swallowed by terminal (which was a utf-8 terminal). When putting into a file, the output is same for both

Re: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-23 Thread Christian Schneider
n Schneider' <cschn...@cschneid.com>; 'PHP internals' >> <internals@lists.php.net> >> Subject: Re: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion >> >> On 19/02/16 09:20, Anatol Belski wrote: >>> Could you please write back, what is

RE: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-21 Thread Anatol Belski
t; > Subject: Re: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion > > On 19/02/16 09:20, Anatol Belski wrote: > > Could you please write back, what is the out difference between those > > two commands? Thanks. Anatol > In the first case, it correctly outputs «x°11

Re: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-20 Thread Ángel González
On 19/02/16 09:20, Anatol Belski wrote: Could you please write back, what is the out difference between those two commands? Thanks. Anatol In the first case, it correctly outputs «x°11» (78 c2 b0 7a). With jit enabled it produces «x�z» (78 c2 7a). That is, it is only outputting the lower byte

RE: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-19 Thread Anatol Belski
ls' > > <internals@lists.php.net> > > Subject: RE: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind > > assertion > > > > Hi Christian, > > > > > -Original Message- > > > From: Christian Schneider [mailto:cschn...@cschneid.com] >

RE: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-19 Thread Anatol Belski
P-DEV] PCRE jit bug with UTF-8 and lookbehind assertion > > Hi Christian, > > > -Original Message- > > From: Christian Schneider [mailto:cschn...@cschneid.com] > > Sent: Wednesday, February 17, 2016 2:07 PM > > To: PHP internals <internals@lists.php.net> &g

RE: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-18 Thread Anatol Belski
Hi Christian, > -Original Message- > From: Christian Schneider [mailto:cschn...@cschneid.com] > Sent: Wednesday, February 17, 2016 2:07 PM > To: PHP internals <internals@lists.php.net> > Subject: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion > &

Re: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-17 Thread Rasmus Lerdorf
On 02/17/2016 05:06 AM, Christian Schneider wrote: > Hi there, > we just ran into a version of the bug "JIT bug with lookbehind assertion": > https://bugs.exim.org/show_bug.cgi?id=1189 > > To reproduce it you can use > php -n -r 'ini_set("pcre.jit", 0); echo >

[PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-17 Thread Christian Schneider
Hi there, we just ran into a version of the bug "JIT bug with lookbehind assertion": https://bugs.exim.org/show_bug.cgi?id=1189 To reproduce it you can use php -n -r 'ini_set("pcre.jit", 0); echo preg_replace("/\b(11|21|41)\b/u", "z", "x°11\n");' vs. php -n -r