]> granicus.if.org Git - php/commit
fix bug related to #865
authorMárcio Almada <marcio3w@gmail.com>
Mon, 19 Sep 2016 16:42:07 +0000 (12:42 -0400)
committerNikita Popov <nikic@php.net>
Thu, 22 Sep 2016 10:46:19 +0000 (12:46 +0200)
commit4397306b322dc650a6d931bfecdb64cc56678c08
treee047459db15f6e63d2ff317443e1369e908797b6
parent4dd70b6e2f40c0ad85bea761803f2aeeb8ef785a
fix bug related to #865

In case USE_KEY flag is active, RegexIterator->accept() should keep it's
old behavior which is to accept keys mapping arrays.

This broke after PHP 5.5 but was not noticed due to lack of tests for USE_KEY.
ext/spl/spl_iterators.c
ext/spl/tests/bug68128-USE_KEY.phpt [new file with mode: 0644]
ext/spl/tests/iterator_053.phpt