|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2014-03-28 19:34 UTC] levim@php.net
-Assigned To:
+Assigned To: colder
[2014-04-09 09:56 UTC] colder@php.net
-Status: Assigned
+Status: Closed
[2014-04-09 09:56 UTC] colder@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
Description: ------------ The REGIT_INVERTED flag which can be set through the RegexIterator::__construct() or RegexIterator::setMode() isn't inverting the current return value. Test script: --------------- <?php $it = new \ArrayIterator(array("foo", "bar", "baz")); $it = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, 2); print_r(iterator_to_array($it)); Expected result: ---------------- array( [0] => foo ) Actual result: -------------- Array ( [1] => bar [2] => baz )