mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
16 lines
318 B
PHP
16 lines
318 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--
|
|
Implicit conversion from float INF to int loses precision
|