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

From: Date: Fri, 19 Feb 2016 09:18:02 +0000
Subject: RE: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-91315@lists.php.net to get a copy of this message
Christian, > -----Original Message----- > From: Anatol Belski [mailto:anatol.php@belski.net] > Sent: Friday, February 19, 2016 9:20 AM > To: 'Christian Schneider' <cschneid@cschneid.com>; 'PHP internals' > <internals@lists.php.net> > Subject: RE: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion > > Hi Christian, > > > -----Original Message----- > > From: Anatol Belski [mailto:anatol.php@belski.net] > > Sent: Thursday, February 18, 2016 9:16 AM > > To: 'Christian Schneider' <cschneid@cschneid.com>; 'PHP > > internals' > > <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:cschneid@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 > > > > > > 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 'ini_set("pcre.jit", 1); echo > > > preg_replace("/\b(11|21|41)\b/u", "z", > > > "x°11\n");' > > > > > Seems valgrind doesn't detect any issues with this code. Using latest > > 7.0.4-dev code with PCRE 8.38, valgrind 3.10.0 on Jessie. Is there > > something else I could miss? > > > Could you please write back, what is the out difference between those two > commands? > One more question - are you using (the bundled or external) PCRE 8.38? Thanks Anatol

« previous php.internals (#91315) next »