#50579 [Opn->Ver]: RegexIterator::REPLACE doesn't work

From: Date: Tue, 29 Dec 2009 15:04:21 +0000
Subject: #50579 [Opn->Ver]: RegexIterator::REPLACE doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146190@lists.php.net to get a copy of this message
ID: 50579 Updated by: jani@php.net Reported By: team at fazend dot com -Status: Open +Status: Verified Bug Type: SPL related -Operating System: MacOS +Operating System: * -PHP Version: 5.3.1 +PHP Version: 5.*, 6 New Comment: Seems like this thing never got finished. There aren't any tests for it either.. Previous Comments: ------------------------------------------------------------------------ [2009-12-26 13:18:29] team at fazend dot com Description: ------------ RegexIterator::REPLACE doesn't work as it is supposed to do. The code example attached should return something, but it returns nothing. Reproduce code: --------------- $i = new RegexIterator( new ArrayIterator(array( 'test1'=>'test888', 'test2'=>'what?', 'test3'=>'test999')), '/^test(.*)/', RegexIterator::REPLACE); foreach ($i as $name=>$value) echo $name . '=>' . $value . "\n"; Expected result: ---------------- 888 999 Actual result: -------------- nothing ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50579&edit=1

« previous php.bugs (#146190) next »