Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61868 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32470 invoked from network); 30 Jul 2012 07:13:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2012 07:13:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.143 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.143 smtp143.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.143] ([67.192.241.143:38215] helo=smtp143.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/C1-16347-11436105 for ; Mon, 30 Jul 2012 03:13:22 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp24.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id DDF151801C0 for ; Mon, 30 Jul 2012 03:13:18 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp24.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id A0CA9180098 for ; Mon, 30 Jul 2012 03:13:18 -0400 (EDT) Message-ID: <5016340D.7020800@sugarcrm.com> Date: Mon, 30 Jul 2012 00:13:17 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: xml ext and & entities From: smalyshev@sugarcrm.com (Stas Malyshev) 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. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227