1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

3 Commits

Author SHA1 Message Date
Ilija Tovilo
28fd7597ba Add first-class callable cache
This cache is implemented in two levels: A EG(callable_convert_cache) global
that maps zend_function pointers to a shared callable instance, and a
CALLABLE_CONVERT cache slot to remember the result of the hash table lookup.

Fixes GH-19754
Closes GH-19863
2025-10-03 01:04:56 +02:00
Tim Düsterhus
c93b467b37 zend_ast: Fix Closure scope for FCC in constant expression (#19639)
Fixes php/php-src#19637
2025-09-01 21:20:37 +02:00
Tim Düsterhus
2042fd34e0 Support first-class callables in const-expressions (#17213)
RFC: https://wiki.php.net/rfc/fcc_in_const_expr

Co-authored-by: Volker Dusch <volker@tideways-gmbh.com>
2025-02-20 18:52:47 +01:00