Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61902 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33564 invoked from network); 1 Aug 2012 05:46:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Aug 2012 05:46:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:61296] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/00-32875-D92C8105 for ; Wed, 01 Aug 2012 01:46:05 -0400 Received: by obfk16 with SMTP id k16so13672576obf.29 for ; Tue, 31 Jul 2012 22:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uWAIu/h3iTkWCM1qDKR+jaAe02T2iROdKJAqnXQXYq4=; b=yAW1n25jaHRbOe3B1ow+QwJEN8Pc99VNFYxXFx0O5J0XZcDQGHD5zN6+lCHI3orNno wyIexVENe5W/g4TlM6MhaZMsnlNvdcRUtY3bCcvJ8y4dhzMhYQtlLLCt6FIRcN+rZaT3 d6Wv8mJAyExnc/+qjZ2farkLHaTZZzBI/AhfV6pDFAUAhCFgwCA/c7PsAl+GLne+AxW9 AoJdh8EtMvJ7gT5Fr55azxLDFF20N7bAK2T9woeKzZOwmLRFsiFtWsA5svxDtTm4h2xK 6LgyO0XwR4PeNSQmEYLzPaxxVNf3xFdW8HgnRqn6qhW8QIgUVNa9A+z24peCPqyR+D72 9Q7g== MIME-Version: 1.0 Received: by 10.50.159.232 with SMTP id xf8mr3122816igb.36.1343799962130; Tue, 31 Jul 2012 22:46:02 -0700 (PDT) Received: by 10.64.32.1 with HTTP; Tue, 31 Jul 2012 22:46:02 -0700 (PDT) In-Reply-To: <5016340D.7020800@sugarcrm.com> References: <5016340D.7020800@sugarcrm.com> Date: Wed, 1 Aug 2012 07:46:02 +0200 Message-ID: To: Stas Malyshev Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] xml ext and & entities From: pierre.php@gmail.com (Pierre Joye) hi! On Mon, Jul 30, 2012 at 9:13 AM, Stas Malyshev wrote: > Hi! > > I was running PHP tests on my freshly installed CentOS instance and I > noticed that two XML tests were failing: ext/xml/tests/bug35447.phpt and > ext/xml/tests/xml011.phpt. Looks like for some reason XML parser when > parsing something like this: This & that - produces empty string > instead of "&" when parsing &. > Any idea why it could be happening? libxml2 is of version 2.7.8 and in > general it's standard CentOS 6.3, 64-bit. Does not reproduce on Mac > with same PHP and same libxml2 version. Can you try using a stock version of libxml or using the latest version? I met some issues in the past on Centos because of bad patches applied to libxml. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org