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

WordPress Trac noreply at wordpress.org
Thu May 10 20:15:20 UTC 2018


#43583: Introduce new PHP cross-version compat function `is_countable()`
-------------------------------------------------+-------------------------
 Reporter:  jrf                                  |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  4.9.6
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note commit                                    |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43226" 43226]:
 {{{
 #!CommitTicketReference repository="" revision="43226"
 General: Skip `test_is_countable_ResourceBundle()` on PHP 5.3 and below.

 `ResourceBundle` is only countable in PHP 5.4+, which can be considered an
 acceptable edge case for WordPress core purposes.

 Props jrf, ayeshrajans.
 Fixes #43583.
 }}}

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


More information about the wp-trac mailing list