Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7136 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24173 invoked by uid 1010); 16 Jan 2004 11:20:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24110 invoked from network); 16 Jan 2004 11:20:16 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.118) by pb1.pair.com with SMTP; 16 Jan 2004 11:20:16 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id D725F6D8B3; Fri, 16 Jan 2004 12:20:15 +0100 (CET) Received: by xaxa.search.ch (Postfix, from userid 65534) id D27796D906; Fri, 16 Jan 2004 12:20:14 +0100 (CET) Received: from cschneid.com (ultrafilter2-i [192.168.85.3]) by xaxa.search.ch (Postfix) with ESMTP id DADD86D8B3; Fri, 16 Jan 2004 12:20:13 +0100 (CET) Message-ID: <4007C8ED.9050300@cschneid.com> Date: Fri, 16 Jan 2004 12:20:13 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031009 X-Accept-Language: de-ch, en-us, en MIME-Version: 1.0 To: Marcus Boerger Cc: Adam Maccabee Trachtenberg , Rob Richards , internals@lists.php.net References: <562031508046.20040114230741@marcus-boerger.de> <19800119111039.GC2178@bumblebury.com> <1572071705312.20040115101738@marcus-boerger.de> <026101c3db83$1e80c4a0$f7dea8c0@cyberware.local> <94-2136388359.20040116102531@marcus-boerger.de> In-Reply-To: <94-2136388359.20040116102531@marcus-boerger.de> X-Enigmail-Version: 0.76.7.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on xaxa.search.ch X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_44 autolearn=ham version=2.61 X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: [PHP-DEV] SimpleXML: Moving Forward From: cschneid@cschneid.com (Christian Schneider) Marcus Boerger wrote: > Just a node: The thing you saw required SXE objects implementing > interface RecursiveIterator{reset(), hasMore(), key(), current(), > next(), hasChildren(), getChildren()} Excuse my ignorance: As I wasn't at ApacheCon I'm not sure what Adam was talking about, is the SXE/RecursiveIterator stuff what makes foreach possible? > That's exactly why dimity tried to implement $obj->node[0]. And i guess this > is vital to the extension. Again: Is $obj->node[0] needed to provide foreach in all cases (0, 1 or more elements)? Or is this another way of accessing the elements? > To achieve that the property ready handler would have to return an array or > iterator class always. That's all that needs to be changed. Unfortunatley > this would be a major change of functionality so feel free to drop proeprty > handling completley. Again I can't follow the conclusion your drawing. I think people on the list here expressed what they'd like to see as functionality (i.e. how they'd use SimpleXML). If it needs a major change so be it. > I guess it can be done by simply fixing the refcounting. So why not start > some work/analysis instead of mucking around? The least bit you could do is > writing some test files under test subdirectory. I think the problem right now is that noone feels responsible to go and start coding. Old dilemma: If you start coding too early people get upset because you didn't ask first. And if you want to nail down the specs first you get accused of 'only mucking around'. So who's responsible for SimpleXML now and what are the specs? I'd be willing to provide some code if the person in charge wants help, I don't have the knowledge or karma on this list to lead the development though, that's for sure. So give me specs and I give you e.g. test cases :-) - Chris