summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug71220.phpt
blob: 5c5f43eeea89c42067771388ace4775b19218344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #71220 (Null pointer deref (segfault) in compact via ob_start)
--FILE--
<?php
ob_start("compact");
try {
    ob_end_clean();
} catch (\Error $e) {
    echo $e->getMessage();
}
?>
--EXPECT--
Cannot call compact() dynamically