[php-src] PR #21461: Fix GH-20042: SEGV in array.c when error handler clobbers IAP object

From: Date: Mon, 16 Mar 2026 12:38:00 +0000
Subject: [php-src] PR #21461: Fix GH-20042: SEGV in array.c when error handler clobbers IAP object
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-35253@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21461 Author: iliaal ## Summary - get_ht_for_iap() emits a deprecation for object IAP args, triggering the user error handler. If the handler clobbers the by-ref variable, the code reads a dead zval as an object pointer and segfaults. - After the deprecation, re-check that the zval is still IS_OBJECT. Return NULL if clobbered. All 6 callers (end/prev/next/reset/current/key) handle NULL gracefully. - Regression test covers all 6 functions. Fixes #20042

« previous php.git-pulls (#35253) next »