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
This commit is contained in:
Ayesh Karunaratne 2021-06-03 22:11:39 +05:30 committed by Nikita Popov
parent 67b0e435f3
commit b8e380ab09
40 changed files with 212 additions and 212 deletions

View file

@ -13,13 +13,13 @@ echo "Done\n";
--EXPECTF-- --EXPECTF--
Warning: Undefined array key -1 in %s on line %d Warning: Undefined array key -1 in %s on line %d
Deprecated: Implicit conversion from non-compatible float -1.1 to int in %s on line %d Deprecated: Implicit conversion from float -1.1 to int loses precision in %s on line %d
Warning: Undefined array key -1 in %s on line %d Warning: Undefined array key -1 in %s on line %d
Warning: Undefined array key -1 in %s on line %d Warning: Undefined array key -1 in %s on line %d
Deprecated: Implicit conversion from non-compatible float -1.1 to int in %s on line %d Deprecated: Implicit conversion from float -1.1 to int loses precision in %s on line %d
Warning: Undefined array key -1 in %s on line %d Warning: Undefined array key -1 in %s on line %d
Done Done

View file

@ -27,11 +27,11 @@ new foo;
?> ?>
--EXPECTF-- --EXPECTF--
Deprecated: Implicit conversion from non-compatible float 3428599296 to int in %s on line %d Deprecated: Implicit conversion from float 3428599296 to int loses precision in %s on line %d
Deprecated: Implicit conversion from non-compatible float 3459455488 to int in %s on line %d Deprecated: Implicit conversion from float 3459455488 to int loses precision in %s on line %d
Deprecated: Implicit conversion from non-compatible float 3459616768 to int in %s on line %d Deprecated: Implicit conversion from float 3459616768 to int loses precision in %s on line %d
array(3) { array(3) {
[-866368000]=> [-866368000]=>
int(1) int(1)
@ -41,10 +41,10 @@ array(3) {
int(3) int(3)
} }
Deprecated: Implicit conversion from non-compatible float 3459455488 to int in %s on line %d Deprecated: Implicit conversion from float 3459455488 to int loses precision in %s on line %d
int(2) int(2)
Deprecated: Implicit conversion from non-compatible float 3459616768 to int in %s on line %d Deprecated: Implicit conversion from float 3459616768 to int loses precision in %s on line %d
array(1) { array(1) {
[-835350528]=> [-835350528]=>
int(3) int(3)

View file

@ -13,6 +13,6 @@ function test() : int {
var_dump(test()); var_dump(test());
?> ?>
--EXPECTF-- --EXPECTF--
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
float(1.5) float(1.5)
int(1) int(1)

View file

@ -47,7 +47,7 @@ var_dump(
--EXPECTF-- --EXPECTF--
Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d
Deprecated: Implicit conversion from non-compatible float 3.14 to int in %s on line %d Deprecated: Implicit conversion from float 3.14 to int loses precision in %s on line %d
int(3) int(3)
string(4) "1foo" string(4) "1foo"
bool(false) bool(false)

View file

@ -99,31 +99,31 @@ bool(true)
bool(false) bool(false)
- double --- - double ---
Deprecated: Implicit conversion from non-compatible float -1.1 to int in %s on line %d Deprecated: Implicit conversion from float -1.1 to int loses precision in %s on line %d
bool(false) bool(false)
Deprecated: Implicit conversion from non-compatible float -10.5 to int in %s on line %d Deprecated: Implicit conversion from float -10.5 to int loses precision in %s on line %d
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float -4.1 to int in %s on line %d Deprecated: Implicit conversion from float -4.1 to int loses precision in %s on line %d
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float -0.8 to int in %s on line %d Deprecated: Implicit conversion from float -0.8 to int loses precision in %s on line %d
bool(false) bool(false)
Deprecated: Implicit conversion from non-compatible float -0.1 to int in %s on line %d Deprecated: Implicit conversion from float -0.1 to int loses precision in %s on line %d
bool(false) bool(false)
Deprecated: Implicit conversion from non-compatible float 0.2 to int in %s on line %d Deprecated: Implicit conversion from float 0.2 to int loses precision in %s on line %d
bool(false) bool(false)
Deprecated: Implicit conversion from non-compatible float 0.9 to int in %s on line %d Deprecated: Implicit conversion from float 0.9 to int loses precision in %s on line %d
bool(false) bool(false)
Deprecated: Implicit conversion from non-compatible float 3.141592653589793 to int in %s on line %d Deprecated: Implicit conversion from float 3.141592653589793 to int loses precision in %s on line %d
bool(false) bool(false)
Deprecated: Implicit conversion from non-compatible float 100.5001 to int in %s on line %d Deprecated: Implicit conversion from float 100.5001 to int loses precision in %s on line %d
bool(true) bool(true)
- array --- - array ---
bool(true) bool(true)

View file

@ -21,7 +21,7 @@ foo(10e500); // Infinity
--EXPECTF-- --EXPECTF--
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)
string(3) "NAN" string(3) "NAN"
string(8) "1.0E+121" string(8) "1.0E+121"

View file

@ -26,9 +26,9 @@ var_dump($array[$string_float]);
int(0) int(0)
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float 1.0E+121 to int in %s on line %d Deprecated: Implicit conversion from float 1.0E+121 to int loses precision in %s on line %d
Deprecated: Implicit conversion from non-compatible float 1.0E+121 to int in %s on line %d Deprecated: Implicit conversion from float 1.0E+121 to int loses precision in %s on line %d
array(2) { array(2) {
[0]=> [0]=>
string(11) "Large float" string(11) "Large float"
@ -42,13 +42,13 @@ array(2) {
string(18) "String large float" string(18) "String large float"
} }
Deprecated: Implicit conversion from non-compatible float 1.0E+121 to int in %s on line %d Deprecated: Implicit conversion from float 1.0E+121 to int loses precision in %s on line %d
string(1) "0" string(1) "0"
Warning: Undefined array key "1.0E+121" in %s on line %d Warning: Undefined array key "1.0E+121" in %s on line %d
NULL NULL
Deprecated: Implicit conversion from non-compatible float 1.0E+121 to int in %s on line %d Deprecated: Implicit conversion from float 1.0E+121 to int loses precision in %s on line %d
string(1) "0" string(1) "0"
Warning: Undefined array key "1.0E+121" in %s on line %d Warning: Undefined array key "1.0E+121" in %s on line %d

View file

@ -71,43 +71,43 @@ var_dump($instance->a);
--EXPECTF-- --EXPECTF--
Bitwise ops: Bitwise ops:
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(-2) int(-2)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(3) int(3)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(2) int(2)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(8) int(8)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(6) int(6)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)
Modulo: Modulo:
Deprecated: Implicit conversion from non-compatible float 6.5 to int in %s on line %d Deprecated: Implicit conversion from float 6.5 to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float 2.5 to int in %s on line %d Deprecated: Implicit conversion from float 2.5 to int loses precision in %s on line %d
int(1) int(1)
Offset access: Offset access:
Arrays: Arrays:
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
string(1) "b" string(1) "b"
Deprecated: Implicit conversion from non-compatible float 2.5 to int in %s on line %d Deprecated: Implicit conversion from float 2.5 to int loses precision in %s on line %d
array(3) { array(3) {
[0]=> [0]=>
string(1) "a" string(1) "a"
@ -125,16 +125,16 @@ Warning: String offset cast occurred in %s on line %d
string(3) "phz" string(3) "phz"
Function calls: Function calls:
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float 60.5 to int in %s on line %d Deprecated: Implicit conversion from float 60.5 to int loses precision in %s on line %d
string(1) "<" string(1) "<"
Function returns: Function returns:
Deprecated: Implicit conversion from non-compatible float 3.5 to int in %s on line %d Deprecated: Implicit conversion from float 3.5 to int loses precision in %s on line %d
int(3) int(3)
Typed property assignment: Typed property assignment:
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)

View file

@ -34,21 +34,21 @@ var_dump($var);
--EXPECTF-- --EXPECTF--
Bitwise ops: Bitwise ops:
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(3) int(3)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(2) int(2)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(6) int(6)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)
Modulo: Modulo:
Deprecated: Implicit conversion from non-compatible float 2.5 to int in %s on line %d Deprecated: Implicit conversion from float 2.5 to int loses precision in %s on line %d
int(1) int(1)

View file

@ -93,49 +93,49 @@ var_dump($instance->a);
--EXPECTF-- --EXPECTF--
Bitwise ops: Bitwise ops:
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(-2) int(-2)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(3) int(3)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(2) int(2)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(8) int(8)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(8) int(8)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(6) int(6)
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)
Modulo: Modulo:
Deprecated: Implicit conversion from non-compatible float 6.5 to int in %s on line %d Deprecated: Implicit conversion from float 6.5 to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float 2.5 to int in %s on line %d Deprecated: Implicit conversion from float 2.5 to int loses precision in %s on line %d
int(1) int(1)
Offset access: Offset access:
Arrays: Arrays:
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
string(1) "b" string(1) "b"
Deprecated: Implicit conversion from non-compatible float 2.5 to int in %s on line %d Deprecated: Implicit conversion from float 2.5 to int loses precision in %s on line %d
array(3) { array(3) {
[0]=> [0]=>
string(1) "a" string(1) "a"
@ -153,16 +153,16 @@ Warning: String offset cast occurred in %s on line %d
string(3) "phz" string(3) "phz"
Function calls: Function calls:
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float 60.5 to int in %s on line %d Deprecated: Implicit conversion from float 60.5 to int loses precision in %s on line %d
string(1) "<" string(1) "<"
Function returns: Function returns:
Deprecated: Implicit conversion from non-compatible float 3.5 to int in %s on line %d Deprecated: Implicit conversion from float 3.5 to int loses precision in %s on line %d
int(3) int(3)
Typed property assignment: Typed property assignment:
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
int(1) int(1)

View file

@ -54,45 +54,45 @@ var_dump($instance->a);
--EXPECTF-- --EXPECTF--
Bitwise ops: Bitwise ops:
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(3) int(3)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(2) int(2)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(8) int(8)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(6) int(6)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)
Modulo: Modulo:
Deprecated: Implicit conversion from non-compatible float-string "6.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "6.5" to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float-string "2.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "2.5" to int loses precision in %s on line %d
int(1) int(1)
Function calls: Function calls:
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float-string "60.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "60.5" to int loses precision in %s on line %d
string(1) "<" string(1) "<"
Function returns: Function returns:
Deprecated: Implicit conversion from non-compatible float-string "3.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.5" to int loses precision in %s on line %d
int(3) int(3)
Typed property assignment: Typed property assignment:
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)

View file

@ -34,21 +34,21 @@ var_dump($var);
--EXPECTF-- --EXPECTF--
Bitwise ops: Bitwise ops:
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(3) int(3)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(2) int(2)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(6) int(6)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)
Modulo: Modulo:
Deprecated: Implicit conversion from non-compatible float-string "2.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "2.5" to int loses precision in %s on line %d
int(1) int(1)

View file

@ -74,51 +74,51 @@ var_dump($instance->a);
--EXPECTF-- --EXPECTF--
Bitwise ops: Bitwise ops:
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(3) int(3)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(2) int(2)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(8) int(8)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(8) int(8)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(6) int(6)
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)
Modulo: Modulo:
Deprecated: Implicit conversion from non-compatible float-string "6.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "6.5" to int loses precision in %s on line %d
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float-string "2.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "2.5" to int loses precision in %s on line %d
int(1) int(1)
Function calls: Function calls:
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)
Deprecated: Implicit conversion from non-compatible float-string "60.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "60.5" to int loses precision in %s on line %d
string(1) "<" string(1) "<"
Function returns: Function returns:
Deprecated: Implicit conversion from non-compatible float-string "3.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.5" to int loses precision in %s on line %d
int(3) int(3)
Typed property assignment: Typed property assignment:
Deprecated: Implicit conversion from non-compatible float-string "1.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "1.5" to int loses precision in %s on line %d
int(1) int(1)

View file

@ -39,7 +39,7 @@ bool(true)
bool(true) bool(true)
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float 0.6 to int in %s on line %d Deprecated: Implicit conversion from float 0.6 to int loses precision in %s on line %d
bool(true) bool(true)
bool(false) bool(false)
bool(false) bool(false)

View file

@ -96,28 +96,28 @@ bool(false)
bool(true) bool(true)
- double --- - double ---
Deprecated: Implicit conversion from non-compatible float -1.1 to int in %s on line %d Deprecated: Implicit conversion from float -1.1 to int loses precision in %s on line %d
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float -10.5 to int in %s on line %d Deprecated: Implicit conversion from float -10.5 to int loses precision in %s on line %d
bool(false) bool(false)
Deprecated: Implicit conversion from non-compatible float -0.8 to int in %s on line %d Deprecated: Implicit conversion from float -0.8 to int loses precision in %s on line %d
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float -0.1 to int in %s on line %d Deprecated: Implicit conversion from float -0.1 to int loses precision in %s on line %d
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float 0.2 to int in %s on line %d Deprecated: Implicit conversion from float 0.2 to int loses precision in %s on line %d
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float 0.9 to int in %s on line %d Deprecated: Implicit conversion from float 0.9 to int loses precision in %s on line %d
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float 3.141592653589793 to int in %s on line %d Deprecated: Implicit conversion from float 3.141592653589793 to int loses precision in %s on line %d
bool(true) bool(true)
Deprecated: Implicit conversion from non-compatible float 100.5001 to int in %s on line %d Deprecated: Implicit conversion from float 100.5001 to int loses precision in %s on line %d
bool(false) bool(false)
- array --- - array ---
bool(false) bool(false)

View file

@ -21,7 +21,7 @@ list(STDIN => $resource) = [];
?> ?>
--EXPECTF-- --EXPECTF--
Deprecated: Implicit conversion from non-compatible float 1.5 to int in %s on line %d Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
string(0) "" string(0) ""
int(1) int(1)
int(0) int(0)

View file

@ -17,7 +17,7 @@ var_dump(bin2hex($s1));
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECTF--
Deprecated: Implicit conversion from non-compatible float 23.67 to int in %s on line %d Deprecated: Implicit conversion from float 23.67 to int loses precision in %s on line %d
int(-24) int(-24)
string(8) "8c90929a" string(8) "8c90929a"
Done Done

View file

@ -35,7 +35,7 @@ echo "Done\n";
--EXPECTF-- --EXPECTF--
int(2) int(2)
Deprecated: Implicit conversion from non-compatible float 0.0836 to int in %s on line %d Deprecated: Implicit conversion from float 0.0836 to int loses precision in %s on line %d
int(1) int(1)
Warning: Undefined array key "" in %s on line %d Warning: Undefined array key "" in %s on line %d

View file

@ -453,7 +453,7 @@ Unsupported operand types: bool % array
Unsupported operand types: array % int Unsupported operand types: array % int
Unsupported operand types: int % array Unsupported operand types: int % array
Unsupported operand types: array % float Unsupported operand types: array % float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float % array Unsupported operand types: float % array
Unsupported operand types: array % string Unsupported operand types: array % string
Unsupported operand types: string % array Unsupported operand types: string % array
@ -469,7 +469,7 @@ Unsupported operand types: bool % stdClass
Unsupported operand types: stdClass % int Unsupported operand types: stdClass % int
Unsupported operand types: int % stdClass Unsupported operand types: int % stdClass
Unsupported operand types: stdClass % float Unsupported operand types: stdClass % float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float % stdClass Unsupported operand types: float % stdClass
Unsupported operand types: stdClass % string Unsupported operand types: stdClass % string
Unsupported operand types: string % stdClass Unsupported operand types: string % stdClass
@ -485,7 +485,7 @@ Unsupported operand types: bool % resource
Unsupported operand types: resource % int Unsupported operand types: resource % int
Unsupported operand types: int % resource Unsupported operand types: int % resource
Unsupported operand types: resource % float Unsupported operand types: resource % float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float % resource Unsupported operand types: float % resource
Unsupported operand types: resource % string Unsupported operand types: resource % string
Unsupported operand types: string % resource Unsupported operand types: string % resource
@ -501,7 +501,7 @@ Unsupported operand types: bool % string
Unsupported operand types: string % int Unsupported operand types: string % int
Unsupported operand types: int % string Unsupported operand types: int % string
Unsupported operand types: string % float Unsupported operand types: string % float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float % string Unsupported operand types: float % string
Unsupported operand types: string % string Unsupported operand types: string % string
Unsupported operand types: string % string Unsupported operand types: string % string
@ -609,7 +609,7 @@ Unsupported operand types: bool << array
Unsupported operand types: array << int Unsupported operand types: array << int
Unsupported operand types: int << array Unsupported operand types: int << array
Unsupported operand types: array << float Unsupported operand types: array << float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float << array Unsupported operand types: float << array
Unsupported operand types: array << string Unsupported operand types: array << string
Unsupported operand types: string << array Unsupported operand types: string << array
@ -625,7 +625,7 @@ Unsupported operand types: bool << stdClass
Unsupported operand types: stdClass << int Unsupported operand types: stdClass << int
Unsupported operand types: int << stdClass Unsupported operand types: int << stdClass
Unsupported operand types: stdClass << float Unsupported operand types: stdClass << float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float << stdClass Unsupported operand types: float << stdClass
Unsupported operand types: stdClass << string Unsupported operand types: stdClass << string
Unsupported operand types: string << stdClass Unsupported operand types: string << stdClass
@ -641,7 +641,7 @@ Unsupported operand types: bool << resource
Unsupported operand types: resource << int Unsupported operand types: resource << int
Unsupported operand types: int << resource Unsupported operand types: int << resource
Unsupported operand types: resource << float Unsupported operand types: resource << float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float << resource Unsupported operand types: float << resource
Unsupported operand types: resource << string Unsupported operand types: resource << string
Unsupported operand types: string << resource Unsupported operand types: string << resource
@ -657,7 +657,7 @@ Unsupported operand types: bool << string
Unsupported operand types: string << int Unsupported operand types: string << int
Unsupported operand types: int << string Unsupported operand types: int << string
Unsupported operand types: string << float Unsupported operand types: string << float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float << string Unsupported operand types: float << string
Unsupported operand types: string << string Unsupported operand types: string << string
Unsupported operand types: string << string Unsupported operand types: string << string
@ -689,7 +689,7 @@ Unsupported operand types: bool >> array
Unsupported operand types: array >> int Unsupported operand types: array >> int
Unsupported operand types: int >> array Unsupported operand types: int >> array
Unsupported operand types: array >> float Unsupported operand types: array >> float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float >> array Unsupported operand types: float >> array
Unsupported operand types: array >> string Unsupported operand types: array >> string
Unsupported operand types: string >> array Unsupported operand types: string >> array
@ -705,7 +705,7 @@ Unsupported operand types: bool >> stdClass
Unsupported operand types: stdClass >> int Unsupported operand types: stdClass >> int
Unsupported operand types: int >> stdClass Unsupported operand types: int >> stdClass
Unsupported operand types: stdClass >> float Unsupported operand types: stdClass >> float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float >> stdClass Unsupported operand types: float >> stdClass
Unsupported operand types: stdClass >> string Unsupported operand types: stdClass >> string
Unsupported operand types: string >> stdClass Unsupported operand types: string >> stdClass
@ -721,7 +721,7 @@ Unsupported operand types: bool >> resource
Unsupported operand types: resource >> int Unsupported operand types: resource >> int
Unsupported operand types: int >> resource Unsupported operand types: int >> resource
Unsupported operand types: resource >> float Unsupported operand types: resource >> float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float >> resource Unsupported operand types: float >> resource
Unsupported operand types: resource >> string Unsupported operand types: resource >> string
Unsupported operand types: string >> resource Unsupported operand types: string >> resource
@ -737,7 +737,7 @@ Unsupported operand types: bool >> string
Unsupported operand types: string >> int Unsupported operand types: string >> int
Unsupported operand types: int >> string Unsupported operand types: int >> string
Unsupported operand types: string >> float Unsupported operand types: string >> float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float >> string Unsupported operand types: float >> string
Unsupported operand types: string >> string Unsupported operand types: string >> string
Unsupported operand types: string >> string Unsupported operand types: string >> string
@ -769,7 +769,7 @@ Unsupported operand types: bool & array
Unsupported operand types: array & int Unsupported operand types: array & int
Unsupported operand types: int & array Unsupported operand types: int & array
Unsupported operand types: array & float Unsupported operand types: array & float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float & array Unsupported operand types: float & array
Unsupported operand types: array & string Unsupported operand types: array & string
Unsupported operand types: string & array Unsupported operand types: string & array
@ -813,7 +813,7 @@ Unsupported operand types: bool & string
Unsupported operand types: string & int Unsupported operand types: string & int
Unsupported operand types: int & string Unsupported operand types: int & string
Unsupported operand types: string & float Unsupported operand types: string & float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float & string Unsupported operand types: float & string
No error for "foo" & "123" No error for "foo" & "123"
No error for "123" & "foo" No error for "123" & "foo"
@ -844,7 +844,7 @@ Unsupported operand types: bool | array
Unsupported operand types: array | int Unsupported operand types: array | int
Unsupported operand types: int | array Unsupported operand types: int | array
Unsupported operand types: array | float Unsupported operand types: array | float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float | array Unsupported operand types: float | array
Unsupported operand types: array | string Unsupported operand types: array | string
Unsupported operand types: string | array Unsupported operand types: string | array
@ -888,7 +888,7 @@ Unsupported operand types: bool | string
Unsupported operand types: string | int Unsupported operand types: string | int
Unsupported operand types: int | string Unsupported operand types: int | string
Unsupported operand types: string | float Unsupported operand types: string | float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float | string Unsupported operand types: float | string
No error for "foo" | "123" No error for "foo" | "123"
No error for "123" | "foo" No error for "123" | "foo"
@ -919,7 +919,7 @@ Unsupported operand types: bool ^ array
Unsupported operand types: array ^ int Unsupported operand types: array ^ int
Unsupported operand types: int ^ array Unsupported operand types: int ^ array
Unsupported operand types: array ^ float Unsupported operand types: array ^ float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float ^ array Unsupported operand types: float ^ array
Unsupported operand types: array ^ string Unsupported operand types: array ^ string
Unsupported operand types: string ^ array Unsupported operand types: string ^ array
@ -963,7 +963,7 @@ Unsupported operand types: bool ^ string
Unsupported operand types: string ^ int Unsupported operand types: string ^ int
Unsupported operand types: int ^ string Unsupported operand types: int ^ string
Unsupported operand types: string ^ float Unsupported operand types: string ^ float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float ^ string Unsupported operand types: float ^ string
No error for "foo" ^ "123" No error for "foo" ^ "123"
No error for "123" ^ "foo" No error for "123" ^ "foo"
@ -1467,7 +1467,7 @@ Unsupported operand types: bool % array
Unsupported operand types: array % int Unsupported operand types: array % int
Unsupported operand types: int % array Unsupported operand types: int % array
Unsupported operand types: array % float Unsupported operand types: array % float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float % array Unsupported operand types: float % array
Unsupported operand types: array % string Unsupported operand types: array % string
Unsupported operand types: string % array Unsupported operand types: string % array
@ -1483,7 +1483,7 @@ Unsupported operand types: bool % stdClass
Unsupported operand types: stdClass % int Unsupported operand types: stdClass % int
Unsupported operand types: int % stdClass Unsupported operand types: int % stdClass
Unsupported operand types: stdClass % float Unsupported operand types: stdClass % float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float % stdClass Unsupported operand types: float % stdClass
Unsupported operand types: stdClass % string Unsupported operand types: stdClass % string
Unsupported operand types: string % stdClass Unsupported operand types: string % stdClass
@ -1499,7 +1499,7 @@ Unsupported operand types: bool % resource
Unsupported operand types: resource % int Unsupported operand types: resource % int
Unsupported operand types: int % resource Unsupported operand types: int % resource
Unsupported operand types: resource % float Unsupported operand types: resource % float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float % resource Unsupported operand types: float % resource
Unsupported operand types: resource % string Unsupported operand types: resource % string
Unsupported operand types: string % resource Unsupported operand types: string % resource
@ -1515,7 +1515,7 @@ Unsupported operand types: bool % string
Unsupported operand types: string % int Unsupported operand types: string % int
Unsupported operand types: int % string Unsupported operand types: int % string
Unsupported operand types: string % float Unsupported operand types: string % float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float % string Unsupported operand types: float % string
Unsupported operand types: string % string Unsupported operand types: string % string
Unsupported operand types: string % string Unsupported operand types: string % string
@ -1623,7 +1623,7 @@ Unsupported operand types: bool << array
Unsupported operand types: array << int Unsupported operand types: array << int
Unsupported operand types: int << array Unsupported operand types: int << array
Unsupported operand types: array << float Unsupported operand types: array << float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float << array Unsupported operand types: float << array
Unsupported operand types: array << string Unsupported operand types: array << string
Unsupported operand types: string << array Unsupported operand types: string << array
@ -1639,7 +1639,7 @@ Unsupported operand types: bool << stdClass
Unsupported operand types: stdClass << int Unsupported operand types: stdClass << int
Unsupported operand types: int << stdClass Unsupported operand types: int << stdClass
Unsupported operand types: stdClass << float Unsupported operand types: stdClass << float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float << stdClass Unsupported operand types: float << stdClass
Unsupported operand types: stdClass << string Unsupported operand types: stdClass << string
Unsupported operand types: string << stdClass Unsupported operand types: string << stdClass
@ -1655,7 +1655,7 @@ Unsupported operand types: bool << resource
Unsupported operand types: resource << int Unsupported operand types: resource << int
Unsupported operand types: int << resource Unsupported operand types: int << resource
Unsupported operand types: resource << float Unsupported operand types: resource << float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float << resource Unsupported operand types: float << resource
Unsupported operand types: resource << string Unsupported operand types: resource << string
Unsupported operand types: string << resource Unsupported operand types: string << resource
@ -1671,7 +1671,7 @@ Unsupported operand types: bool << string
Unsupported operand types: string << int Unsupported operand types: string << int
Unsupported operand types: int << string Unsupported operand types: int << string
Unsupported operand types: string << float Unsupported operand types: string << float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float << string Unsupported operand types: float << string
Unsupported operand types: string << string Unsupported operand types: string << string
Unsupported operand types: string << string Unsupported operand types: string << string
@ -1703,7 +1703,7 @@ Unsupported operand types: bool >> array
Unsupported operand types: array >> int Unsupported operand types: array >> int
Unsupported operand types: int >> array Unsupported operand types: int >> array
Unsupported operand types: array >> float Unsupported operand types: array >> float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float >> array Unsupported operand types: float >> array
Unsupported operand types: array >> string Unsupported operand types: array >> string
Unsupported operand types: string >> array Unsupported operand types: string >> array
@ -1719,7 +1719,7 @@ Unsupported operand types: bool >> stdClass
Unsupported operand types: stdClass >> int Unsupported operand types: stdClass >> int
Unsupported operand types: int >> stdClass Unsupported operand types: int >> stdClass
Unsupported operand types: stdClass >> float Unsupported operand types: stdClass >> float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float >> stdClass Unsupported operand types: float >> stdClass
Unsupported operand types: stdClass >> string Unsupported operand types: stdClass >> string
Unsupported operand types: string >> stdClass Unsupported operand types: string >> stdClass
@ -1735,7 +1735,7 @@ Unsupported operand types: bool >> resource
Unsupported operand types: resource >> int Unsupported operand types: resource >> int
Unsupported operand types: int >> resource Unsupported operand types: int >> resource
Unsupported operand types: resource >> float Unsupported operand types: resource >> float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float >> resource Unsupported operand types: float >> resource
Unsupported operand types: resource >> string Unsupported operand types: resource >> string
Unsupported operand types: string >> resource Unsupported operand types: string >> resource
@ -1751,7 +1751,7 @@ Unsupported operand types: bool >> string
Unsupported operand types: string >> int Unsupported operand types: string >> int
Unsupported operand types: int >> string Unsupported operand types: int >> string
Unsupported operand types: string >> float Unsupported operand types: string >> float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float >> string Unsupported operand types: float >> string
Unsupported operand types: string >> string Unsupported operand types: string >> string
Unsupported operand types: string >> string Unsupported operand types: string >> string
@ -1783,7 +1783,7 @@ Unsupported operand types: bool & array
Unsupported operand types: array & int Unsupported operand types: array & int
Unsupported operand types: int & array Unsupported operand types: int & array
Unsupported operand types: array & float Unsupported operand types: array & float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float & array Unsupported operand types: float & array
Unsupported operand types: array & string Unsupported operand types: array & string
Unsupported operand types: string & array Unsupported operand types: string & array
@ -1799,7 +1799,7 @@ Unsupported operand types: bool & stdClass
Unsupported operand types: stdClass & int Unsupported operand types: stdClass & int
Unsupported operand types: int & stdClass Unsupported operand types: int & stdClass
Unsupported operand types: stdClass & float Unsupported operand types: stdClass & float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float & stdClass Unsupported operand types: float & stdClass
Unsupported operand types: stdClass & string Unsupported operand types: stdClass & string
Unsupported operand types: string & stdClass Unsupported operand types: string & stdClass
@ -1815,7 +1815,7 @@ Unsupported operand types: bool & resource
Unsupported operand types: resource & int Unsupported operand types: resource & int
Unsupported operand types: int & resource Unsupported operand types: int & resource
Unsupported operand types: resource & float Unsupported operand types: resource & float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float & resource Unsupported operand types: float & resource
Unsupported operand types: resource & string Unsupported operand types: resource & string
Unsupported operand types: string & resource Unsupported operand types: string & resource
@ -1831,7 +1831,7 @@ Unsupported operand types: bool & string
Unsupported operand types: string & int Unsupported operand types: string & int
Unsupported operand types: int & string Unsupported operand types: int & string
Unsupported operand types: string & float Unsupported operand types: string & float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float & string Unsupported operand types: float & string
No error for "foo" &= "123" No error for "foo" &= "123"
No error for "123" &= "foo" No error for "123" &= "foo"
@ -1862,7 +1862,7 @@ Unsupported operand types: bool | array
Unsupported operand types: array | int Unsupported operand types: array | int
Unsupported operand types: int | array Unsupported operand types: int | array
Unsupported operand types: array | float Unsupported operand types: array | float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float | array Unsupported operand types: float | array
Unsupported operand types: array | string Unsupported operand types: array | string
Unsupported operand types: string | array Unsupported operand types: string | array
@ -1878,7 +1878,7 @@ Unsupported operand types: bool | stdClass
Unsupported operand types: stdClass | int Unsupported operand types: stdClass | int
Unsupported operand types: int | stdClass Unsupported operand types: int | stdClass
Unsupported operand types: stdClass | float Unsupported operand types: stdClass | float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float | stdClass Unsupported operand types: float | stdClass
Unsupported operand types: stdClass | string Unsupported operand types: stdClass | string
Unsupported operand types: string | stdClass Unsupported operand types: string | stdClass
@ -1894,7 +1894,7 @@ Unsupported operand types: bool | resource
Unsupported operand types: resource | int Unsupported operand types: resource | int
Unsupported operand types: int | resource Unsupported operand types: int | resource
Unsupported operand types: resource | float Unsupported operand types: resource | float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float | resource Unsupported operand types: float | resource
Unsupported operand types: resource | string Unsupported operand types: resource | string
Unsupported operand types: string | resource Unsupported operand types: string | resource
@ -1910,7 +1910,7 @@ Unsupported operand types: bool | string
Unsupported operand types: string | int Unsupported operand types: string | int
Unsupported operand types: int | string Unsupported operand types: int | string
Unsupported operand types: string | float Unsupported operand types: string | float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float | string Unsupported operand types: float | string
No error for "foo" |= "123" No error for "foo" |= "123"
No error for "123" |= "foo" No error for "123" |= "foo"
@ -1941,7 +1941,7 @@ Unsupported operand types: bool ^ array
Unsupported operand types: array ^ int Unsupported operand types: array ^ int
Unsupported operand types: int ^ array Unsupported operand types: int ^ array
Unsupported operand types: array ^ float Unsupported operand types: array ^ float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float ^ array Unsupported operand types: float ^ array
Unsupported operand types: array ^ string Unsupported operand types: array ^ string
Unsupported operand types: string ^ array Unsupported operand types: string ^ array
@ -1957,7 +1957,7 @@ Unsupported operand types: bool ^ stdClass
Unsupported operand types: stdClass ^ int Unsupported operand types: stdClass ^ int
Unsupported operand types: int ^ stdClass Unsupported operand types: int ^ stdClass
Unsupported operand types: stdClass ^ float Unsupported operand types: stdClass ^ float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float ^ stdClass Unsupported operand types: float ^ stdClass
Unsupported operand types: stdClass ^ string Unsupported operand types: stdClass ^ string
Unsupported operand types: string ^ stdClass Unsupported operand types: string ^ stdClass
@ -1973,7 +1973,7 @@ Unsupported operand types: bool ^ resource
Unsupported operand types: resource ^ int Unsupported operand types: resource ^ int
Unsupported operand types: int ^ resource Unsupported operand types: int ^ resource
Unsupported operand types: resource ^ float Unsupported operand types: resource ^ float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float ^ resource Unsupported operand types: float ^ resource
Unsupported operand types: resource ^ string Unsupported operand types: resource ^ string
Unsupported operand types: string ^ resource Unsupported operand types: string ^ resource
@ -1989,7 +1989,7 @@ Unsupported operand types: bool ^ string
Unsupported operand types: string ^ int Unsupported operand types: string ^ int
Unsupported operand types: int ^ string Unsupported operand types: int ^ string
Unsupported operand types: string ^ float Unsupported operand types: string ^ float
Warning: Implicit conversion from non-compatible float 3.5 to int Warning: Implicit conversion from float 3.5 to int loses precision
Unsupported operand types: float ^ string Unsupported operand types: float ^ string
No error for "foo" ^= "123" No error for "foo" ^= "123"
No error for "123" ^= "foo" No error for "123" ^= "foo"

View file

@ -72,7 +72,7 @@ int(1)
int(1) int(1)
*** Trying float(1.5) *** Trying float(1.5)
E_DEPRECATED: Implicit conversion from non-compatible float 1.5 to int on line 14 E_DEPRECATED: Implicit conversion from float 1.5 to int loses precision on line 14
int(1) int(1)
*** Trying string(2) "1a" *** Trying string(2) "1a"

View file

@ -71,7 +71,7 @@ int(1)
*** Trying float(1) *** Trying float(1)
int(1) int(1)
*** Trying float(1.5) *** Trying float(1.5)
E_DEPRECATED: Implicit conversion from non-compatible float 1.5 to int on line %d E_DEPRECATED: Implicit conversion from float 1.5 to int loses precision on line %d
int(1) int(1)
*** Trying string(2) "1a" *** Trying string(2) "1a"
*** Caught {closure}(): Return value must be of type int, string returned in %s on line %d *** Caught {closure}(): Return value must be of type int, string returned in %s on line %d

View file

@ -71,7 +71,7 @@ int(1)
*** Trying float(1) *** Trying float(1)
int(1) int(1)
*** Trying float(1.5) *** Trying float(1.5)
E_DEPRECATED: Implicit conversion from non-compatible float 1.5 to int on line %d E_DEPRECATED: Implicit conversion from float 1.5 to int loses precision on line %d
int(1) int(1)
*** Trying string(2) "1a" *** Trying string(2) "1a"
*** Caught {closure}(): Return value must be of type int, string returned in %s on line %d *** Caught {closure}(): Return value must be of type int, string returned in %s on line %d

View file

@ -810,11 +810,11 @@ try_again:
ZEND_API void ZEND_COLD zend_incompatible_double_to_long_error(double d) ZEND_API void ZEND_COLD zend_incompatible_double_to_long_error(double d)
{ {
zend_error_unchecked(E_DEPRECATED, "Implicit conversion from non-compatible float %.*H to int", -1, d); zend_error_unchecked(E_DEPRECATED, "Implicit conversion from float %.*H to int loses precision", -1, d);
} }
ZEND_API void ZEND_COLD zend_incompatible_string_to_long_error(const zend_string *s) ZEND_API void ZEND_COLD zend_incompatible_string_to_long_error(const zend_string *s)
{ {
zend_error(E_DEPRECATED, "Implicit conversion from non-compatible float-string \"%s\" to int", ZSTR_VAL(s)); zend_error(E_DEPRECATED, "Implicit conversion from float-string \"%s\" to int loses precision", ZSTR_VAL(s));
} }
ZEND_API zend_long ZEND_FASTCALL zval_get_long_func(zval *op, bool is_strict) /* {{{ */ ZEND_API zend_long ZEND_FASTCALL zval_get_long_func(zval *op, bool is_strict) /* {{{ */

View file

@ -118,11 +118,11 @@ bool(true)
ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint
--float 10.5-- --float 10.5--
Deprecated: Implicit conversion from non-compatible float 10.5 to int in %s on line %d Deprecated: Implicit conversion from float 10.5 to int loses precision in %s on line %d
bool(true) bool(true)
--float -10.5-- --float -10.5--
Deprecated: Implicit conversion from non-compatible float -10.5 to int in %s on line %d Deprecated: Implicit conversion from float -10.5 to int loses precision in %s on line %d
ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint
--float 10.0e19-- --float 10.0e19--
ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
@ -130,7 +130,7 @@ ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must
ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
--float .5-- --float .5--
Deprecated: Implicit conversion from non-compatible float 0.5 to int in %s on line %d Deprecated: Implicit conversion from float 0.5 to int loses precision in %s on line %d
bool(true) bool(true)
--empty array-- --empty array--
TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, array given TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, array given

View file

@ -24,5 +24,5 @@ function test($char_code) {
echo test(65), "\n"; echo test(65), "\n";
?> ?>
--EXPECTF-- --EXPECTF--
Deprecated: Implicit conversion from non-compatible float 4294967168 to int in %s on line %d Deprecated: Implicit conversion from float 4294967168 to int loses precision in %s on line %d
correct correct

View file

@ -20,5 +20,5 @@ try {
?> ?>
--EXPECTF-- --EXPECTF--
Deprecated: Implicit conversion from non-compatible float 2.5 to int in %s on line %d Deprecated: Implicit conversion from float 2.5 to int loses precision in %s on line %d
Illegal offset type Illegal offset type

View file

@ -227,7 +227,7 @@ array(3) {
string(3) "333" string(3) "333"
} }
Deprecated: Implicit conversion from non-compatible float 0.123 to int in %s on line %d Deprecated: Implicit conversion from float 0.123 to int loses precision in %s on line %d
array(3) { array(3) {
["aaa"]=> ["aaa"]=>
string(3) "111" string(3) "111"
@ -259,7 +259,7 @@ array(3) {
string(3) "ccc" string(3) "ccc"
} }
Deprecated: Implicit conversion from non-compatible float 3.14 to int in %s on line %d Deprecated: Implicit conversion from float 3.14 to int loses precision in %s on line %d
array(0) { array(0) {
} }

View file

@ -34,7 +34,7 @@ echo "Done";
-- Iteration 1 -- -- Iteration 1 --
Pass float as $key: Pass float as $key:
Deprecated: Implicit conversion from non-compatible float 1.23456789E-10 to int in %s on line %d Deprecated: Implicit conversion from float 1.23456789E-10 to int loses precision in %s on line %d
bool(true) bool(true)
Cast float to int: Cast float to int:
bool(true) bool(true)
@ -42,7 +42,7 @@ bool(true)
-- Iteration 1 -- -- Iteration 1 --
Pass float as $key: Pass float as $key:
Deprecated: Implicit conversion from non-compatible float 1.00000000000001 to int in %s on line %d Deprecated: Implicit conversion from float 1.00000000000001 to int loses precision in %s on line %d
bool(true) bool(true)
Cast float to int: Cast float to int:
bool(true) bool(true)
@ -50,7 +50,7 @@ bool(true)
-- Iteration 1 -- -- Iteration 1 --
Pass float as $key: Pass float as $key:
Deprecated: Implicit conversion from non-compatible float 1.99999999999999 to int in %s on line %d Deprecated: Implicit conversion from float 1.99999999999999 to int loses precision in %s on line %d
bool(true) bool(true)
Cast float to int: Cast float to int:
bool(true) bool(true)

View file

@ -36,7 +36,7 @@ try {
--EXPECTF-- --EXPECTF--
Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
Deprecated: Implicit conversion from non-compatible float 7.38 to int in %s on line %d Deprecated: Implicit conversion from float 7.38 to int loses precision in %s on line %d
array(8) { array(8) {
[10]=> [10]=>
array(1) { array(1) {

View file

@ -53,22 +53,22 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
echo "\n", toUTF8(65), "\n", toUTF8(233), "\n", toUTF8(1252), "\n", toUTF8(20095), "\n"; echo "\n", toUTF8(65), "\n", toUTF8(233), "\n", toUTF8(1252), "\n", toUTF8(20095), "\n";
?> ?>
--EXPECTF-- --EXPECTF--
Deprecated: Implicit conversion from non-compatible float 4294967168 to int in %s on line %d Deprecated: Implicit conversion from float 4294967168 to int loses precision in %s on line %d
A A
Deprecated: Implicit conversion from non-compatible float 4294967168 to int in %s on line %d Deprecated: Implicit conversion from float 4294967168 to int loses precision in %s on line %d
Deprecated: Implicit conversion from non-compatible float 4294965248 to int in %s on line %d Deprecated: Implicit conversion from float 4294965248 to int loses precision in %s on line %d
é é
Deprecated: Implicit conversion from non-compatible float 4294967168 to int in %s on line %d Deprecated: Implicit conversion from float 4294967168 to int loses precision in %s on line %d
Deprecated: Implicit conversion from non-compatible float 4294965248 to int in %s on line %d Deprecated: Implicit conversion from float 4294965248 to int loses precision in %s on line %d
Ӥ Ӥ
Deprecated: Implicit conversion from non-compatible float 4294967168 to int in %s on line %d Deprecated: Implicit conversion from float 4294967168 to int loses precision in %s on line %d
Deprecated: Implicit conversion from non-compatible float 4294965248 to int in %s on line %d Deprecated: Implicit conversion from float 4294965248 to int loses precision in %s on line %d
Deprecated: Implicit conversion from non-compatible float 4294901760 to int in %s on line %d Deprecated: Implicit conversion from float 4294901760 to int loses precision in %s on line %d
乿 乿

View file

@ -28,19 +28,19 @@ foreach ($values as $value) {
--EXPECTF-- --EXPECTF--
string(4) "1010" string(4) "1010"
Deprecated: Implicit conversion from non-compatible float 3950.5 to int in %s on line %d Deprecated: Implicit conversion from float 3950.5 to int loses precision in %s on line %d
string(12) "111101101110" string(12) "111101101110"
Deprecated: Implicit conversion from non-compatible float 3950.5 to int in %s on line %d Deprecated: Implicit conversion from float 3950.5 to int loses precision in %s on line %d
string(12) "111101101110" string(12) "111101101110"
string(2) "11" string(2) "11"
string(7) "1011111" string(7) "1011111"
string(4) "1010" string(4) "1010"
Deprecated: Implicit conversion from non-compatible float-string "3950.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "3950.5" to int loses precision in %s on line %d
string(12) "111101101110" string(12) "111101101110"
Deprecated: Implicit conversion from non-compatible float-string "3.9505e3" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.9505e3" to int loses precision in %s on line %d
string(12) "111101101110" string(12) "111101101110"
string(6) "100111" string(6) "100111"
decbin(): Argument #1 ($num) must be of type int, string given decbin(): Argument #1 ($num) must be of type int, string given

View file

@ -28,19 +28,19 @@ foreach ($values as $value) {
--EXPECTF-- --EXPECTF--
string(1) "a" string(1) "a"
Deprecated: Implicit conversion from non-compatible float 3950.5 to int in %s on line %d Deprecated: Implicit conversion from float 3950.5 to int loses precision in %s on line %d
string(3) "f6e" string(3) "f6e"
Deprecated: Implicit conversion from non-compatible float 3950.5 to int in %s on line %d Deprecated: Implicit conversion from float 3950.5 to int loses precision in %s on line %d
string(3) "f6e" string(3) "f6e"
string(1) "3" string(1) "3"
string(2) "5f" string(2) "5f"
string(1) "a" string(1) "a"
Deprecated: Implicit conversion from non-compatible float-string "3950.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "3950.5" to int loses precision in %s on line %d
string(3) "f6e" string(3) "f6e"
Deprecated: Implicit conversion from non-compatible float-string "3.9505e3" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.9505e3" to int loses precision in %s on line %d
string(3) "f6e" string(3) "f6e"
string(2) "27" string(2) "27"
dechex(): Argument #1 ($num) must be of type int, string given dechex(): Argument #1 ($num) must be of type int, string given

View file

@ -28,19 +28,19 @@ foreach ($values as $value) {
--EXPECTF-- --EXPECTF--
string(2) "12" string(2) "12"
Deprecated: Implicit conversion from non-compatible float 3950.5 to int in %s on line %d Deprecated: Implicit conversion from float 3950.5 to int loses precision in %s on line %d
string(4) "7556" string(4) "7556"
Deprecated: Implicit conversion from non-compatible float 3950.5 to int in %s on line %d Deprecated: Implicit conversion from float 3950.5 to int loses precision in %s on line %d
string(4) "7556" string(4) "7556"
string(1) "3" string(1) "3"
string(3) "137" string(3) "137"
string(2) "12" string(2) "12"
Deprecated: Implicit conversion from non-compatible float-string "3950.5" to int in %s on line %d Deprecated: Implicit conversion from float-string "3950.5" to int loses precision in %s on line %d
string(4) "7556" string(4) "7556"
Deprecated: Implicit conversion from non-compatible float-string "3.9505e3" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.9505e3" to int loses precision in %s on line %d
string(4) "7556" string(4) "7556"
string(2) "47" string(2) "47"
decoct(): Argument #1 ($num) must be of type int, string given decoct(): Argument #1 ($num) must be of type int, string given

View file

@ -16,7 +16,7 @@ var_dump(mt_srand(false));
NULL NULL
NULL NULL
Deprecated: Implicit conversion from non-compatible float 500.1 to int in %s on line %d Deprecated: Implicit conversion from float 500.1 to int loses precision in %s on line %d
NULL NULL
NULL NULL
NULL NULL

View file

@ -45,12 +45,12 @@ round: 123456789
...with precision 3-> float(123456789) ...with precision 3-> float(123456789)
...with precision 4-> float(123456789) ...with precision 4-> float(123456789)
Deprecated: Implicit conversion from non-compatible float 3.6 to int in %s on line %d Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d
...with precision 3.6-> float(123456789) ...with precision 3.6-> float(123456789)
...with precision 2-> float(123456789) ...with precision 2-> float(123456789)
...with precision 04-> float(123456789) ...with precision 04-> float(123456789)
Deprecated: Implicit conversion from non-compatible float-string "3.6" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d
...with precision 3.6-> float(123456789) ...with precision 3.6-> float(123456789)
...with precision 2.1e1-> float(123456789) ...with precision 2.1e1-> float(123456789)
...with precision 1-> float(123456789) ...with precision 1-> float(123456789)
@ -61,12 +61,12 @@ round: 123.456789
...with precision 3-> float(123.457) ...with precision 3-> float(123.457)
...with precision 4-> float(123.4568) ...with precision 4-> float(123.4568)
Deprecated: Implicit conversion from non-compatible float 3.6 to int in %s on line %d Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d
...with precision 3.6-> float(123.457) ...with precision 3.6-> float(123.457)
...with precision 2-> float(123.46) ...with precision 2-> float(123.46)
...with precision 04-> float(123.4568) ...with precision 04-> float(123.4568)
Deprecated: Implicit conversion from non-compatible float-string "3.6" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d
...with precision 3.6-> float(123.457) ...with precision 3.6-> float(123.457)
...with precision 2.1e1-> float(123.456789) ...with precision 2.1e1-> float(123.456789)
...with precision 1-> float(123.5) ...with precision 1-> float(123.5)
@ -77,12 +77,12 @@ round: -4.5679123
...with precision 3-> float(-4.568) ...with precision 3-> float(-4.568)
...with precision 4-> float(-4.5679) ...with precision 4-> float(-4.5679)
Deprecated: Implicit conversion from non-compatible float 3.6 to int in %s on line %d Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d
...with precision 3.6-> float(-4.568) ...with precision 3.6-> float(-4.568)
...with precision 2-> float(-4.57) ...with precision 2-> float(-4.57)
...with precision 04-> float(-4.5679) ...with precision 04-> float(-4.5679)
Deprecated: Implicit conversion from non-compatible float-string "3.6" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d
...with precision 3.6-> float(-4.568) ...with precision 3.6-> float(-4.568)
...with precision 2.1e1-> float(-4.5679123) ...with precision 2.1e1-> float(-4.5679123)
...with precision 1-> float(-4.6) ...with precision 1-> float(-4.6)
@ -93,12 +93,12 @@ round: 12300
...with precision 3-> float(12300) ...with precision 3-> float(12300)
...with precision 4-> float(12300) ...with precision 4-> float(12300)
Deprecated: Implicit conversion from non-compatible float 3.6 to int in %s on line %d Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d
...with precision 3.6-> float(12300) ...with precision 3.6-> float(12300)
...with precision 2-> float(12300) ...with precision 2-> float(12300)
...with precision 04-> float(12300) ...with precision 04-> float(12300)
Deprecated: Implicit conversion from non-compatible float-string "3.6" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d
...with precision 3.6-> float(12300) ...with precision 3.6-> float(12300)
...with precision 2.1e1-> float(12300) ...with precision 2.1e1-> float(12300)
...with precision 1-> float(12300) ...with precision 1-> float(12300)
@ -109,12 +109,12 @@ round: -4567
...with precision 3-> float(-4567) ...with precision 3-> float(-4567)
...with precision 4-> float(-4567) ...with precision 4-> float(-4567)
Deprecated: Implicit conversion from non-compatible float 3.6 to int in %s on line %d Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d
...with precision 3.6-> float(-4567) ...with precision 3.6-> float(-4567)
...with precision 2-> float(-4567) ...with precision 2-> float(-4567)
...with precision 04-> float(-4567) ...with precision 04-> float(-4567)
Deprecated: Implicit conversion from non-compatible float-string "3.6" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d
...with precision 3.6-> float(-4567) ...with precision 3.6-> float(-4567)
...with precision 2.1e1-> float(-4567) ...with precision 2.1e1-> float(-4567)
...with precision 1-> float(-4567) ...with precision 1-> float(-4567)
@ -125,12 +125,12 @@ round: 2311527
...with precision 3-> float(2311527) ...with precision 3-> float(2311527)
...with precision 4-> float(2311527) ...with precision 4-> float(2311527)
Deprecated: Implicit conversion from non-compatible float 3.6 to int in %s on line %d Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d
...with precision 3.6-> float(2311527) ...with precision 3.6-> float(2311527)
...with precision 2-> float(2311527) ...with precision 2-> float(2311527)
...with precision 04-> float(2311527) ...with precision 04-> float(2311527)
Deprecated: Implicit conversion from non-compatible float-string "3.6" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d
...with precision 3.6-> float(2311527) ...with precision 3.6-> float(2311527)
...with precision 2.1e1-> float(2311527) ...with precision 2.1e1-> float(2311527)
...with precision 1-> float(2311527) ...with precision 1-> float(2311527)
@ -141,12 +141,12 @@ round: 14680063
...with precision 3-> float(14680063) ...with precision 3-> float(14680063)
...with precision 4-> float(14680063) ...with precision 4-> float(14680063)
Deprecated: Implicit conversion from non-compatible float 3.6 to int in %s on line %d Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d
...with precision 3.6-> float(14680063) ...with precision 3.6-> float(14680063)
...with precision 2-> float(14680063) ...with precision 2-> float(14680063)
...with precision 04-> float(14680063) ...with precision 04-> float(14680063)
Deprecated: Implicit conversion from non-compatible float-string "3.6" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d
...with precision 3.6-> float(14680063) ...with precision 3.6-> float(14680063)
...with precision 2.1e1-> float(14680063) ...with precision 2.1e1-> float(14680063)
...with precision 1-> float(14680063) ...with precision 1-> float(14680063)
@ -157,12 +157,12 @@ round: 1.234567
...with precision 3-> float(1.235) ...with precision 3-> float(1.235)
...with precision 4-> float(1.2346) ...with precision 4-> float(1.2346)
Deprecated: Implicit conversion from non-compatible float 3.6 to int in %s on line %d Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d
...with precision 3.6-> float(1.235) ...with precision 3.6-> float(1.235)
...with precision 2-> float(1.23) ...with precision 2-> float(1.23)
...with precision 04-> float(1.2346) ...with precision 04-> float(1.2346)
Deprecated: Implicit conversion from non-compatible float-string "3.6" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d
...with precision 3.6-> float(1.235) ...with precision 3.6-> float(1.235)
...with precision 2.1e1-> float(1.234567) ...with precision 2.1e1-> float(1.234567)
...with precision 1-> float(1.2) ...with precision 1-> float(1.2)
@ -173,12 +173,12 @@ round: 2.3456789e8
...with precision 3-> float(234567890) ...with precision 3-> float(234567890)
...with precision 4-> float(234567890) ...with precision 4-> float(234567890)
Deprecated: Implicit conversion from non-compatible float 3.6 to int in %s on line %d Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d
...with precision 3.6-> float(234567890) ...with precision 3.6-> float(234567890)
...with precision 2-> float(234567890) ...with precision 2-> float(234567890)
...with precision 04-> float(234567890) ...with precision 04-> float(234567890)
Deprecated: Implicit conversion from non-compatible float-string "3.6" to int in %s on line %d Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d
...with precision 3.6-> float(234567890) ...with precision 3.6-> float(234567890)
...with precision 2.1e1-> float(234567890) ...with precision 2.1e1-> float(234567890)
...with precision 1-> float(234567890) ...with precision 1-> float(234567890)

View file

@ -19,7 +19,7 @@ var_dump(srand(false));
NULL NULL
NULL NULL
Deprecated: Implicit conversion from non-compatible float 500.1 to int in %s on line %d Deprecated: Implicit conversion from float 500.1 to int loses precision in %s on line %d
NULL NULL
NULL NULL
NULL NULL

View file

@ -12,5 +12,5 @@ $dummy =& $r[0];
print stream_select($r, $w, $e, 0.5); print stream_select($r, $w, $e, 0.5);
?> ?>
--EXPECTF-- --EXPECTF--
Deprecated: Implicit conversion from non-compatible float 0.5 to int in %s on line %d Deprecated: Implicit conversion from float 0.5 to int loses precision in %s on line %d
0 0

View file

@ -59,11 +59,11 @@ string(2) "ff"
string(2) "00" string(2) "00"
-- Iteration 5 -- -- Iteration 5 --
Deprecated: Implicit conversion from non-compatible float 10.5 to int in %s on line %d Deprecated: Implicit conversion from float 10.5 to int loses precision in %s on line %d
string(2) "0a" string(2) "0a"
-- Iteration 6 -- -- Iteration 6 --
Deprecated: Implicit conversion from non-compatible float -20.5 to int in %s on line %d Deprecated: Implicit conversion from float -20.5 to int loses precision in %s on line %d
string(2) "ec" string(2) "ec"
-- Iteration 7 -- -- Iteration 7 --
string(2) "48" string(2) "48"

View file

@ -10,7 +10,7 @@ var_dump(-2147483648 % -2);
--EXPECTF-- --EXPECTF--
int(0) int(0)
Deprecated: Implicit conversion from non-compatible float -9.223372036860776E+18 to int in %s on line %d Deprecated: Implicit conversion from float -9.223372036860776E+18 to int loses precision in %s on line %d
int(0) int(0)
int(0) int(0)
int(0) int(0)

View file

@ -52,7 +52,7 @@ int(-4294967294)
int(-9223372036854775807) int(-9223372036854775807)
--- testing: 9.2233720368548E+18 --- --- testing: 9.2233720368548E+18 ---
Deprecated: Implicit conversion from non-compatible float 9.223372036854776E+18 to int in %s on line %d Deprecated: Implicit conversion from float 9.223372036854776E+18 to int loses precision in %s on line %d
int(9223372036854775807) int(9223372036854775807)
--- testing: -9223372036854775807 --- --- testing: -9223372036854775807 ---
int(9223372036854775806) int(9223372036854775806)