[wp-trac] [WordPress Trac] #43619: Introduce new PHP cross-version compat function `is_iterable()`

WordPress Trac noreply at wordpress.org
Sun Mar 25 10:57:55 UTC 2018


#43619: Introduce new PHP cross-version compat function `is_iterable()`
--------------------------------------+--------------------
 Reporter:  jrf                       |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  4.9.6
Component:  General                   |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------
Changes (by schlessera):

 * keywords:  needs-patch needs-unit-tests => has-patch has-unit-tests


Comment:

 I added a patch with a polyfill implementation and some basic unit tests
 that are taken from the PHP source (except for the Generator test):
 https://github.com/php/php-
 src/blob/6053987bc27e8dede37f437193a5cad448f99bce/ext/standard/tests/general_functions/is_iterable.phpt

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43619#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list