Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55033 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83177 invoked from network); 31 Aug 2011 09:39:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2011 09:39:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=christian.stocker@liip.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=christian.stocker@liip.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain liip.ch designates 207.126.144.149 as permitted sender) X-PHP-List-Original-Sender: christian.stocker@liip.ch X-Host-Fingerprint: 207.126.144.149 eu1sys200aog120.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [207.126.144.149] ([207.126.144.149:52427] helo=eu1sys200aog120.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/A2-03558-5510E5E4 for ; Wed, 31 Aug 2011 05:39:35 -0400 Received: from mail-ey0-f176.google.com ([209.85.215.176]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKTl4BUoWPX/Hme0oNJyZ6TVvR9Oa6NpAv@postini.com; Wed, 31 Aug 2011 09:39:34 UTC Received: by mail-ey0-f176.google.com with SMTP id 10so444235eyz.35 for ; Wed, 31 Aug 2011 02:39:30 -0700 (PDT) Received: by 10.213.22.134 with SMTP id n6mr147855ebb.98.1314783570109; Wed, 31 Aug 2011 02:39:30 -0700 (PDT) Received: from pri7.local (77-58-253-248.dclient.hispeed.ch [77.58.253.248]) by mx.google.com with ESMTPS id 35sm4454977eex.49.2011.08.31.02.39.27 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Aug 2011 02:39:28 -0700 (PDT) Message-ID: <4E5E014E.3060105@liip.ch> Date: Wed, 31 Aug 2011 11:39:26 +0200 Organization: Liip AG User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Stas Malyshev CC: PHP Internals References: <4E5DACD6.1000002@sugarcrm.com> <4E5DE728.9090207@sugarcrm.com> In-Reply-To: <4E5DE728.9090207@sugarcrm.com> X-Enigmail-Version: 1.3.1 OpenPGP: id=0748D5FE; url=http://gpg-keyserver.de/pks/lookup?op=get&search=0xC2BAFBC30748D5FE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] 5.4 beta & tests From: christian.stocker@liip.ch (Christian Stocker) On 31.08.11 09:47, Stas Malyshev wrote: > Hi! > > For simplexml test (ext/simplexml/tests/bug48601.phpt), it looks like > Ilia reverted the fix for bug #48601 with this: > > http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/ext/simplexml/simplexml.c?r1=311870&r2=311874 > > > I'm not sure what simplexml is supposed to return in each case, the > tests seem to be contradictory. Anybody knows what is the right thing to > do here? Ilia fixed test 0008.phpt with that, but for some reason an XPath of "***" isn't considered invalid by libxml (but "**" is, don't ask me why ;)). I'd say if libxml doesn't think the XPath expression is invalid, we should return an empty array and not false. With DOM exactly that happens. I therefore vote for reverting Ilia's patch mentioned above. chregu -- Liip AG // Feldstrasse 133 // CH-8004 Zurich Tel +41 43 500 39 81 // Mobile +41 76 561 88 60 www.liip.ch // blog.liip.ch // GnuPG 0x0748D5FE