[wp-trac] [WordPress Trac] #63853: Add PHP 8.5 compat array functions: `array_first` and `array_last`
WordPress Trac
noreply at wordpress.org
Wed Aug 27 13:24:43 UTC 2025
#63853: Add PHP 8.5 compat array functions: `array_first` and `array_last`
-------------------------------------------------+-------------------------
Reporter: TobiasBg | Owner: jorbin
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: php85 has-patch has-unit-tests | Focuses: php-
commit | compatibility
-------------------------------------------------+-------------------------
Comment (by johnbillion):
PHP also does this internally:
{{{
ZEND_HASH_FOREACH_VAL(array, zval *zv) {
RETURN_COPY_DEREF(zv);
} ZEND_HASH_FOREACH_END();
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63853#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list