mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
23 lines
417 B
Plaintext
23 lines
417 B
Plaintext
|
--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--
|
||
|
Notice: Undefined variable: i in %sbug67314.php on line 4
|
||
|
made it once
|
||
|
|
||
|
Notice: Undefined variable: i in %sbug67314.php on line 4
|
||
|
ok
|