Newsgroups: php.doc,php.internals Path: news.php.net Xref: news.php.net php.doc:969381801 php.internals:48227 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3878 invoked from network); 6 May 2010 07:55:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 May 2010 07:55:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.201 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.223.201 mail-iw0-f201.google.com Received: from [209.85.223.201] ([209.85.223.201:44508] helo=mail-iw0-f201.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/E0-31052-9F572EB4 for ; Thu, 06 May 2010 03:55:38 -0400 Received: by iwn39 with SMTP id 39so7582679iwn.7 for ; Thu, 06 May 2010 00:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=KQev3UsfcLVHmySbuSGG7t9yV+61KeIJfgKjfJ+dTKU=; b=uO1b9TE4/LDvg4MZ5guhhZ194iyWeqifuETBCLfcwSs93+lLlNjIHqvDRsHd/495bk qCbdhRxiAa1vHApuKpawwY8I59P7souXxjEod+T6xr2KqYUEAptndWiDL6hAKOLvkf/V HUnY8WEP7I68VoCdl3k4xZVyNRoNmJd4DcIPE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Dj/UFEtUrxVsDpIq38oy0KMdOB5jpG1/Ky0xxbHfyhVzWyFzkXrWHgJqyLjMOH3Und wcqRwsTKCOna3abOjcnqwNwR4Q8BMglFTdHvWDGMhQWo3ErfpQABmZrgtWtvG1pGO9nD 49muqWJE04ZkgLGrJgLFUMgvMmjwiZpTXyIBU= MIME-Version: 1.0 Received: by 10.231.183.133 with SMTP id cg5mr1479327ibb.12.1273132534844; Thu, 06 May 2010 00:55:34 -0700 (PDT) Received: by 10.231.152.72 with HTTP; Thu, 6 May 2010 00:55:34 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 May 2010 08:55:34 +0100 Message-ID: To: RQuadling@googlemail.com Cc: PHP internals , PHP Documentation List , =?ISO-8859-1?Q?Marcus_B=F6rger?= , Etienne Kneuss Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DOC] What is the use of the $replacement property in the RegexIterator class. From: petercowburn@gmail.com (Peter Cowburn) 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"]=>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. There 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/regexiterator.inc?view=markup ). > > 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=ZEND002498&r=213474731 > ZOPA : http://uk.zopa.com/member/RQuadling >