Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48257 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37376 invoked from network); 11 May 2010 12:34:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2010 12:34:07 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:33536] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/4E-63992-EBE49EB4 for ; Tue, 11 May 2010 08:34:07 -0400 Received: by mail-fx0-f42.google.com with SMTP id 18so1081143fxm.29 for ; Tue, 11 May 2010 05:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=Zz4/gkJWcA5WNR46XJQF/flGKRr8vVkHlsL+k7kTfTE=; b=m+n+hJauV8ylHYU2/IzVqVEDvXliwWYt1nqxF3FoGM1GLcWV/H7SuwTg5ERxzfVx2s Xqt6dbqUUvK2BiR1xm6qgtqNEP1JAns+bSeMWltXBfdOGao9/ZCWmRHf+zbxXMA1+IYP b0OmuDIQbPPRYUXmwimfsAX0+s4rK6O19ksEk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=tH+LAWBr+jOuC8m8wYv6YjCHuoGT1vgQ26z+y5gr3s4BYwcvfSv7V74EbD+oVjGG/q svySEwKNLZpKuOcdVLpqKSNM3CXtS6vSK8m0e3iPL0zrXbpjKgbD8z7VVo2jBkzOfpDW uUT3mCWWlrFhDjFHkelkUlOAdn5csuuNxEKPw= Received: by 10.223.45.22 with SMTP id c22mr6146889faf.107.1273581246197; Tue, 11 May 2010 05:34:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.113.16 with HTTP; Tue, 11 May 2010 05:33:46 -0700 (PDT) Reply-To: RQuadling@googlemail.com In-Reply-To: References: Date: Tue, 11 May 2010 13:33:46 +0100 Message-ID: To: Peter Cowburn Cc: PHP internals , PHP Documentation List , =?UTF-8?Q?Marcus_B=C3=B6rger?= , Etienne Kneuss Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DOC] What is the use of the $replacement property in the RegexIterator class. From: rquadling@googlemail.com (Richard Quadling) On 6 May 2010 08:55, Peter Cowburn wrote: > On 5 May 2010 17:25, Richard Quadling wrote: >> Hi. >> >> I'm in the process of getting the PHPDoc classes showing the correct >> inherited properties and methods (public/protected but not private). >> >> I picked RecursiveRegexIterator (it has the largest number of >> xi:includes in the documentation) as a test. >> >> Using php --rc I see that the inheritance chain is >> RecursiveRegexIterator, RegexIterator, FilterIterator and >> IteratorIterator. >> >> The property $replacement is part of RegexIterator. >> >> I can see no documentation for this in phpdoc, nor in the Doxygen at >> http://www.php.net/~helly/php/ext/spl/ >> >> >> In all the examples I've made so far, var_dump()-ing the RegexIterator >> results in a ["replacement"]=3D>NULL >> >> Assigning a value to $replacement seems to have no bearing on the output= . > > I believe the intention was to give that property a value which could > be used with RegexIterator::REPLACE mode but that particular mode has > not yet been fully implemented. =C2=A0There is a related bug ( > http://bugs.php.net/50579 ) that has not been assigned; I can't say > what the plan is for if/when the replacement mode will get some > attention. See also: the PHP implementation of RegexIterator ( > http://svn.php.net/viewvc/php/php-src/trunk/ext/spl/internal/regexiterato= r.inc?view=3Dmarkup > ). > >> >> Regards, >> >> Richard. >> >> >> -- >> ----- >> Richard Quadling >> "Standing on the shoulders of some very clever giants!" >> EE : http://www.experts-exchange.com/M_248814.html >> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp >> Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213= 474731 >> ZOPA : http://uk.zopa.com/member/RQuadling >> > So, this should be documented as what? As we don't document the future, I think this property should be omitted from the RegexIterator documentation until such time the property is useful. Basically, leave it as is. Yes? --=20 ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213474= 731 ZOPA : http://uk.zopa.com/member/RQuadling