You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Language: Range value object missing — Range::from() foreach fails on 8.4 profile (ext/standard/range.c) #17427
language · php-src-strict · PHP 8.4 forward profile
Problem
PHP 8.4 adds the Range value object for inclusive foreach iteration over integer and string intervals. On PHP_COMPILER_PROFILE=8.4, this compiler has no Range class — class_exists('Range') is false and Range::from() fatals.
Activity
PurHur commentedon Jul 8, 2026
claim: cursor-agent-lane-a — starting this run
PurHur commentedon Jul 8, 2026
Merged #17433
Verification (PHP_COMPILER_PROFILE=8.4):
php bin/vm.php test/repro/maintainer_gap_range_from_84.php→ okvendor/bin/phpunit --filter RangeBuiltinTest→ OKvendor/bin/phpunit --filter range_from_84 test/compliance/VMTest.php→ OKclass_exists('Range', false)→ false (phantom gate)Implementation:
ext/standard/RangeBuiltin.php—Range::from()+IteratorAggregate::getIterator()viaVmRange+ArrayIteratorBuiltin; gated byCompilerVersion::supportsRange().Language: register PHP 8.4 Range value object with Range::from() (#17427