php-src/Zend/tests/not_001.phpt
Ayesh Karunaratne b8e380ab09 Update deprecation message for incompatible float to int conversion
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
2021-06-07 14:36:11 +02:00

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