mirror of
https://github.com/php/php-src.git
synced 2026-04-27 10:16:41 +02:00
bc76b3fca9
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. Closes GH-20109.