[php-src] PR #20109: Improve __unserialize() hardening for SplHeap/SplPriorityQueue

From: Date: Wed, 08 Oct 2025 17:23:22 +0000
Subject: [php-src] PR #20109: Improve __unserialize() hardening for SplHeap/SplPriorityQueue
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33540@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20109 Author: nielsdos It was possible to make the heap accept unserialize data when the heap was corrupted or under modification. This adds the necessary check to prevent that from happening. Also, the exception check at the bottom is pointless, spl_heap_unserialize_internal_state() already returns FAILURE on exception. If it *is* necessary, it should be documented why.

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