Test: /ext/spl/tests/bug69737.phpt - Version 7.4.0-dev        

Bug #69737 Segfault when SplMinHeap::compare produces fatal error
Submitted: 2015-06-01 05:57:03 Modified: 2015-06-02 05:04:35
From: stas Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.4Git-2015-06-01 (Git) OS: *

There are 2 different diffs reported by users for this test.

Count Diff
5 (71%)
001+ Fatal error: Declaration of SplMinHeap1::compare($a, $b) must be compatible with SplHeap::compare() in %s/bug69737.php on line 6
001- Fatal error: Uncaught Error: Call to undefined method SplMinHeap::notexist() in %s%ebug69737.php:%d
002- Stack trace:
003- #0 [internal function]: SplMinHeap1->compare(1, 6)
004- #1 %s%ebug69737.php(%d): SplHeap->insert(6)
005- #2 {main}
006- thrown in %s%ebug69737.php on line %d
2 (29%)
003+ #0 [internal function]: SplMinHeap1->compare()
004+ #1 %s/bug69737.php(9): SplHeap->insert()
003- #0 [internal function]: SplMinHeap1->compare(1, 6)
004- #1 %s%ebug69737.php(%d): SplHeap->insert(6)