summaryrefslogtreecommitdiff
path: root/Zend/tests/bug67314.phpt
blob: 8077b01881b0a2d758a6f6106b986d0a6ad09a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Bug #67314 (Segmentation fault in gc_remove_zval_from_buffer)
--FILE--
<?php
function crash()
{
    $notDefined[$i] = 'test';
}

function error_handler() { return false; }

set_error_handler('error_handler');
crash();
echo "made it once\n";
crash();
echo "ok\n";
?>
--EXPECTF--
Warning: Undefined variable $i in %s on line %d
made it once

Warning: Undefined variable $i in %s on line %d
ok