xref: /PHP-7.3/Zend/tests/bug67314.phpt (revision 174b9ee6)
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--EXPECTF--
18Notice: Undefined variable: i in %sbug67314.php on line 4
19made it once
20
21Notice: Undefined variable: i in %sbug67314.php on line 4
22ok
23