xref: /PHP-8.1/Zend/tests/bug67314.phpt (revision 7aacc705)
1--TEST--
2Bug #67314 (Segmentation fault in gc_remove_zval_from_buffer)
3--FILE--
4<?php
5function crash()
6{
7    $notDefined[$i] = 'test';
8}
9
10function error_handler() { return false; }
11
12set_error_handler('error_handler');
13crash();
14echo "made it once\n";
15crash();
16echo "ok\n";
17?>
18--EXPECTF--
19Warning: Undefined variable $i in %s on line %d
20made it once
21
22Warning: Undefined variable $i in %s on line %d
23ok
24