ru_php/Zend/tests/bitwise_not_precision_exception.phpt

16 lines
320 B
PHP

--TEST--
Promoting float precision warning to exception in bitwise_not
--FILE--
<?php
set_error_handler(function($_, $msg) {
throw new Exception($msg);
});
try {
var_dump(~INF);
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
The float INF is not representable as an int, cast occurred