--TEST--
Error handler dtor NAN value, set to array 2
--FILE--
<?php

set_error_handler(function ($errno, $errstr) {
    global $nan;
    unset($nan);
    echo $errstr, "\n";
});

$nan = fdiv(0, 0);
var_dump($nan);
settype($nan, 'array');
var_dump($nan);

?>
--EXPECT--
float(NAN)
unexpected NAN value was coerced to array
array(1) {
  [0]=>
  float(NAN)
}
