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