xref: /PHP-5.5/ext/spl/tests/bug69737.phpt (revision 1cbd25ca)
1--TEST--
2Bug #69737 (Segfault when SplMinHeap::compare produces fatal error)
3--FILE--
4<?php
5class SplMinHeap1 extends SplMinHeap {
6  public function compare($a, $b) {
7    return -parent::notexist($a, $b);
8  }
9}
10$h = new SplMinHeap1();
11$h->insert(1);
12$h->insert(6);
13?>
14===DONE===
15--EXPECTF--
16Fatal error: Call to undefined method SplMinHeap::notexist() in %s/bug69737.php on line %d
17