php-src/ext/spl/tests/bug69737.phpt
Stanislav Malyshev c0a54d62e2 fix test
2015-06-01 23:58:19 -07:00

22 lines
556 B
PHP

--TEST--
Bug #69737 (Segfault when SplMinHeap::compare produces fatal error)
--FILE--
<?php
class SplMinHeap1 extends SplMinHeap {
public function compare($a, $b) {
return -parent::notexist($a, $b);
}
}
$h = new SplMinHeap1();
$h->insert(1);
$h->insert(6);
?>
===DONE===
--EXPECTF--
Fatal error: Uncaught EngineException: Call to undefined method SplMinHeap::notexist() in %s/bug69737.php:%d
Stack trace:
#0 [internal function]: SplMinHeap1->compare(1, 6)
#1 %s/bug69737.php(%d): SplHeap->insert(6)
#2 {main}
thrown in %s/bug69737.php on line %d