[php-src] PR #25807: ext/spl: Fix use-after-free when ArrayObject::unserialize() replaces the storage

From: Date: Thu, 26 Nov 2026 21:27:17 +0000
Subject: [php-src] PR #25807: ext/spl: Fix use-after-free when ArrayObject::unserialize() replaces the storage
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41081@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25807 Author: Roman3349 ArrayObject::unserialize() released the old array before storing the new one, so a destructor of an old element that accessed the ArrayObject saw the array being destroyed. Store the new array first, as spl_array_set_array() already does.

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