mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
718478377b
index conversion Fixes oss-fuzz #44235
19 lines
359 B
PHP
19 lines
359 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: Implicit conversion from float 1.0E+20 to int loses precision
|
|
array(0) {
|
|
}
|