Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38897 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86788 invoked from network); 10 Jul 2008 12:17:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2008 12:17:39 -0000 Authentication-Results: pb1.pair.com header.from=arnaud.lb@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=arnaud.lb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.185 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arnaud.lb@gmail.com X-Host-Fingerprint: 64.233.182.185 nf-out-0910.google.com Received: from [64.233.182.185] ([64.233.182.185:28511] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/E2-24522-2EDF5784 for ; Thu, 10 Jul 2008 08:17:38 -0400 Received: by nf-out-0910.google.com with SMTP id b11so1005962nfh.13 for ; Thu, 10 Jul 2008 05:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=nQB8WJNLjVAdVc+0XC18bGP+bYhb+mg37D9FMzk49zA=; b=UUEUlzZqUW+CtOC+lRgmqP3yPlOAwKDtScwsTsq231pKWq9b3qC4G58RNKpaahPCrl rk8iPE8Vz01BGS4mj1irb8jtbDuXVKhK6wfA56G9Yd1qJP1SloKWL8YW+SkOtpdZKlhi lQvsKWD7QZKpi6tAxec5fsuLRQkCM6BtG6veI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=LmEWK1SiGGMA+fI/bQVw1zXjLN9XSiAk7ZhOVzSCJ7iimQVtec1F1prfoIGlsUADBu D4xxEvZsE1M/lX9pZSDmvGnquzio5v7nfv7Z/o8xnyyPuufur/T6iapOjMyGQto7Az8g BE4LjTyujcvmnhRJXzoQt9E7EL3El3Y87tIWQ= Received: by 10.210.70.14 with SMTP id s14mr6024766eba.33.1215692254487; Thu, 10 Jul 2008 05:17:34 -0700 (PDT) Received: from 207-177-41-213.getmyip.com ( [213.41.177.207]) by mx.google.com with ESMTPS id z40sm12273747ikz.7.2008.07.10.05.17.31 (version=SSLv3 cipher=RC4-MD5); Thu, 10 Jul 2008 05:17:32 -0700 (PDT) To: Marcus Boerger Date: Thu, 10 Jul 2008 14:16:33 +0200 User-Agent: KMail/1.9.9 Cc: "internals" References: <200807081549.36758.arnaud.lb@gmail.com> <200807091616.20332.arnaud.lb@gmail.com> <152910573.20080709200614@marcus-boerger.de> In-Reply-To: <152910573.20080709200614@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200807101416.33835.arnaud.lb@gmail.com> Subject: Re: [PHP-DEV] [PATCH] RecursiveTreeIterator implementation From: arnaud.lb@gmail.com ("Arnaud Le Blanc") Hello, On Wednesday 09 July 2008 20:06:14 Marcus Boerger wrote: > Hello Arnaud, > > if you can provicde the same for HEAD then I'll submit it. And if you're > fast enough we might even get it into 5.3.0 :-) Johannes, Lukas, how > much time does he have? > > marcus Ok, I made it [1]. I never walked through the PHP6 code until now, I hope this is correct. getPrefix and getPostfix return a binary or unicode string depending on UG(unicode). getEntry returns the original value if it is binary or unicode. Else it converts it depending on UG(unicode), as the purpose of this method is to cast to string. The convertion from array to string in getPrefix throws E_NOTICE errors, so I had to change the error_reporting setting in my test cases [2] for them to pass. I don't know if I may remove these errors or not. current returns the type returned by getEntry. key acts like getEntry. I added a test (005) for the returned types. And an other (006) to test the case where RecursiveTreeIterator got an IteratorAggregate as first param. All tests should pass on 5.3 except 005. [1] http://arnaud.lb.s3.amazonaws.com/RecursiveTreeIterator_HEAD.patch [2] http://arnaud.lb.s3.amazonaws.com/RecursiveTreeIterator-phpt.tar.bz2 Arnaud