Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47889 invoked from network); 17 Feb 2016 13:06:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2016 13:06:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Received: from [195.226.6.51] ([195.226.6.51:60207] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/C7-17120-46074C65 for ; Wed, 17 Feb 2016 08:06:45 -0500 Received: from [10.183.1.94] (unknown [217.192.174.36]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id A116DB20537 for ; Wed, 17 Feb 2016 14:06:41 +0100 (CET) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <79F03701-9083-439B-A9D1-43E24C99CF13@cschneid.com> Date: Wed, 17 Feb 2016 14:06:41 +0100 To: PHP internals Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) X-Mailer: Apple Mail (2.3112) Subject: PCRE jit bug with UTF-8 and lookbehind assertion From: cschneid@cschneid.com (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=3D1189 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=C2=B011\n");' vs. php -n -r 'ini_set("pcre.jit", 1); echo = preg_replace("/\b(11|21|41)\b/u", "z", "x=C2=B011\n");' Since the PCRE bug report dates from 2011-12-27 and is still marked NEW = I wonder if it would be safer for PHP to disable pcre.jit in the = recommended php.ini configuration files. Also: Does anyone know who might be able/willing to look at the upstream = bug? Regards, - Chris