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
Against the Docker Zend 8.2 reference, these builtins must TypeError on a null array operand. The VM silently coerces (legacy empty/false results) on default and PHP_COMPILER_PROFILE=8.4.
Repro
Zend 8.2 (2026-07-21)
VM (2026-07-21)
in_array(1, null)
TypeError (haystack must be array)
false
array_merge(null)
TypeError
array()
array_flip(null)
TypeError
array()
array_map(strval(...), null)
TypeError
array()
array_sum(null)
TypeError
0
Peers: #21914 (count/sizeof), #21915 (array_keys). Same root cause as inverted #21771 (8.4 DEP claim must not break 8.2 reference TypeError).
Activity
PurHur commentedon Jul 21, 2026
claim: PHP Compiler STD Lib — starting this run
Pillar probe (in progress):
make bootstrap-selfhost-linkstill running in docker-exec; inventory/release-readiness queued after lock clears.Plan: remove soft-null for Z_PARAM_ARRAY on in_array/array_merge/array_flip/array_map/array_sum (mirror #21915 array_keys) — always TypeError like php-src; update #21771 soft_forward84 expectations.
Stdlib: Z_PARAM_ARRAY null always TypeError for array builtins (#21916,
PurHur commentedon Jul 21, 2026
Merged in #21955
Verification: VM + JIT repro green; PROFILE=8.4 TypeError (no soft-null); Docker AOT
array_sum(null)exit 134; AotTestarray_sum_null_typeerrorOK. Also closes #21926 (array_sum).