PHP 8.6 Debate: array_search_range RFC Stalls Over Composability Concerns
During the week of August 19, 2026, PHP internals discussions centered on a draft RFC for array_search_range(), proposed by Sepehr Mahmoudi to search a subset of an array without copying it via array_slice(). Developer Rowan Tommins argued the function would become redundant if PHP instead adopted a broader lazy ArraySlice type, and outlined a three-step composable alternative requiring under 20 lines of code each. Larry Garfield supported shelving the proposal, while Sepehr countered that the general solution would require a new engine type and updates to hundreds of array functions. A separate thread addressed inconsistent case sensitivity across four extension-name functions, with Weilin Du ultimately withdrawing his fix and agreeing to add case-sensitivity deprecations to the PHP 8.7 roadmap instead. Both discussions remain unresolved, with the array_search_range RFC still in draft form and still targeting PHP 8.6.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in