Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33075 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26291 invoked by uid 1010); 10 Nov 2007 10:45:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26276 invoked from network); 10 Nov 2007 10:45:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2007 10:45:35 -0000 Authentication-Results: pb1.pair.com header.from=nlopess@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=nlopess@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.55.154.25 as permitted sender) X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.25 relay5.ptmail.sapo.pt Linux 2.4/2.6 Received: from [212.55.154.25] ([212.55.154.25:53188] helo=sapo.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/7E-24268-CCB85374 for ; Sat, 10 Nov 2007 05:45:34 -0500 Received: (qmail 10586 invoked from network); 10 Nov 2007 10:45:29 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.207) by relay6 with SMTP; 10 Nov 2007 10:45:29 -0000 Received: (qmail 28110 invoked from network); 10 Nov 2007 10:45:30 -0000 X-AntiVirus: PTMail-AV 0.3-0.91.1 X-Virus-Status: Clean (0.00701 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[82.155.77.109]) (envelope-sender ) by mta12 (qmail-ldap-1.03) with SMTP for ; 10 Nov 2007 10:45:30 -0000 Message-ID: <003701c82386$ce65ff80$4101a8c0@pc07653> To: "Matthias Pigulla" , References: <00A2E2156BEE8446A81C8881AE117F199A02FC@companyweb> Date: Sat, 10 Nov 2007 10:45:27 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Subject: Re: [PHP-DEV] preg_match and shared libpcre3 bug From: nlopess@php.net ("Nuno Lopes") > With installing a security update for the pcre3 library on Debian > (http://lists.debian.org/debian-security-announce/debian-security-announ > ce-2007/msg00177.html), preg_match('|^\(|', 'xxx') suddenly returns 1 > instead of 0 using PHP 5.1.6. the correct value is 0, yes. > The thing is - I have built PHP using the bundled PCRE library and the > error happens only with the apache2 module, not with a CLI binary. > phpinfo() shows PCRE 6.6 and ldd shows no dependencies against the > shared libpcre.so.3, neither for the php-cli binary nor for the apache > module. > > Any ideas what might cause that? I can't see why the shared library > update makes a difference at all. You are right that updating the shared library shouldn't matter. If the problem happens only with apache2 it suggests that there is some symbol clashing problem. Please try with a recent PHP version and report if it doesn't work (I remember fixing a bunch of these lately). Anyway I would advise you to upgrade PHP to a more recent version, as PCRE 6.6 has some security problems. Nuno