]> granicus.if.org Git - php/commit
Allow ReflectionClass::isIterable() to return true for Traversables
authorSara Golemon <pollita@php.net>
Wed, 31 May 2017 21:18:19 +0000 (14:18 -0700)
committerSara Golemon <pollita@php.net>
Wed, 31 May 2017 21:23:57 +0000 (14:23 -0700)
commitd1cfd87fbe9e34bf909abedb61cfa4b2d7022b4d
tree62fdc98de055fb4774123a5aaa60e9e7732489d6
parentc1500f8519aded29c3632de4240fbc0a4e485a81
Allow ReflectionClass::isIterable() to return true for Traversables

Current behavior is essentially "Is an INTERNAL iterable class".
This change allows isIterable() to return true for userspace classes as well.
ext/reflection/php_reflection.c