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

2016-02-25 Thread Anatol Belski
Hi Ángel, > -Original Message- > From: Ángel González [mailto:keis...@gmail.com] > Sent: Thursday, February 25, 2016 9:12 PM > To: Anatol Belski > Cc: 'Christian Schneider' ; 'PHP internals' > > Subject: Re: [PHP-DEV] PCRE jit bug with UTF-8 and

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
Am 21.02.2016 um 11:42 schrieb Anatol Belski : >> -Original Message- >> From: Ángel González [mailto:keis...@gmail.com] >> Sent: Sunday, February 21, 2016 1:27 AM >> To: Anatol Belski >> Cc: 'Christian Schneider' ; 'PHP internals' >>

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

2016-02-21 Thread Anatol Belski
> -Original Message- > From: Ángel González [mailto:keis...@gmail.com] > Sent: Sunday, February 21, 2016 1:27 AM > To: Anatol Belski > Cc: 'Christian Schneider' ; 'PHP internals' > > Subject: Re: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind

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
Christian, > -Original Message- > From: Anatol Belski [mailto:anatol@belski.net] > Sent: Friday, February 19, 2016 9:20 AM > To: 'Christian Schneider' ; 'PHP internals' > > Subject: RE: [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-19 Thread Anatol Belski
Hi Christian, > -Original Message- > From: Anatol Belski [mailto:anatol@belski.net] > Sent: Thursday, February 18, 2016 9:16 AM > To: 'Christian Schneider' ; 'PHP internals' > > Subject: RE: [PHP-DEV] PCRE jit bug with UTF-8 and

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 > Subject: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion > > Hi there, > we just ran into a version of the bug "JIT

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 > preg_replace("/\b(11|21|