php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64778 SplHeap::recoverFromCorruption is missing source of corruption
Submitted: 2013-05-06 13:28 UTC Modified: 2017-01-28 12:22 UTC
From: j dot jeising at gmail dot com Assigned:
Status: Open Package: SPL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
38 - 6 = ?
Subscribe to this entry?

 
 [2013-05-06 13:28 UTC] j dot jeising at gmail dot com
Description:
------------
The documentation for SplHeap::recoverFromCorruption should mention in which cases 
the heap becomes corrupted. SplHeap::compare already mentions this partially.

Proposed description:

"When an exception is thrown in SplHeap::compare() the Heap is corrupted and 
placed in a blocked state. This function unblocks it. However, some elements might 
not be placed correctly and it may hence break the heap-property."


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 12:22 UTC] cmb@php.net
-Type: Feature/Change Request +Type: Documentation Problem -Package: Documentation problem +Package: SPL related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC