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
18 lines
282 B
PHP
18 lines
282 B
PHP
--TEST--
|
|
No UAF on null offset
|
|
--FILE--
|
|
<?php
|
|
set_error_handler(function($errno, $errstr) {
|
|
global $ary;
|
|
$ary = null;
|
|
echo $errstr;
|
|
});
|
|
|
|
$ary[null] = 1;
|
|
|
|
echo "\nSuccess\n";
|
|
?>
|
|
--EXPECTF--
|
|
Using null as an array offset is deprecated, use an empty string instead
|
|
Success
|