mirror of
https://github.com/php/php-src.git
synced 2024-12-17 13:59:28 +08:00
b8e380ab09
Updates the deprecation message for implicit incompatible float to int conversion from: ``` Implicit conversion from non-compatible float %.*H to int in %s on line %d ``` to ``` Implicit conversion from float %.*H to int loses precision in %s on line %d ``` Related: #6661
24 lines
332 B
PHP
24 lines
332 B
PHP
--TEST--
|
|
bitwise NOT, doubles and strings
|
|
--FILE--
|
|
<?php
|
|
|
|
$d = 23.67;
|
|
$s = "48484.22";
|
|
$s1 = "test";
|
|
$s2 = "some";
|
|
|
|
$s = ~$d;
|
|
var_dump($s);
|
|
|
|
$s1 = ~$s2;
|
|
var_dump(bin2hex($s1));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Implicit conversion from float 23.67 to int loses precision in %s on line %d
|
|
int(-24)
|
|
string(8) "8c90929a"
|
|
Done
|