mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_using_values_null_as_an_array_offset_and_when_calling_array_key_exists
28 lines
606 B
PHP
28 lines
606 B
PHP
--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
|
|
|
|
Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
|
|
made it once
|
|
|
|
Warning: Undefined variable $i in %s on line %d
|
|
|
|
Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
|
|
ok
|