1--TEST--
2Promoting float precision warning to exception in bitwise_not
3--FILE--
4<?php
5set_error_handler(function($_, $msg) {
6    throw new Exception($msg);
7});
8try {
9    var_dump(~INF);
10} catch (Exception $e) {
11    echo $e->getMessage(), "\n";
12}
13?>
14--EXPECT--
15Implicit conversion from float INF to int loses precision
16