xref: /PHP-8.1/Zend/tests/bug71221.phpt (revision 7aacc705)
1--TEST--
2Bug #71221 (Null pointer deref (segfault) in get_defined_vars via ob_start)
3--FILE--
4<?php
5register_shutdown_function("get_defined_vars");
6?>
7--EXPECT--
8Fatal error: Uncaught Error: Cannot call get_defined_vars() dynamically in [no active file]:0
9Stack trace:
10#0 [internal function]: get_defined_vars()
11#1 {main}
12  thrown in [no active file] on line 0
13