1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/Zend/tests/offsets/array_offset_002.phpt

19 lines
361 B
PHP

--TEST--
Capturing array in user error handler during index conversion
--FILE--
<?php
set_error_handler(function($code, $msg) {
echo "Err: $msg\n";
$GLOBALS[''] = $GLOBALS['y'];
});
function x(&$s){
$s[100000000000000000000] = 1;
}
x($y);
var_dump($y);
?>
--EXPECT--
Err: The float 1.0E+20 is not representable as an int, cast occurred
array(0) {
}