File tree Expand file tree Collapse file tree 5 files changed +39
-5
lines changed Expand file tree Collapse file tree 5 files changed +39
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,34 @@ var_dump(-0b11111111111111111111111111111111);
77
77
var_dump (-0b1111111111111111111111111111111 );
78
78
var_dump (-0b111111111111111111111111111111 );
79
79
var_dump (-0b1 );
80
- --EXPECT --
80
+ --EXPECTF --
81
+ Warning: Saw imprecise float binary literal - the last 1 non-zero bits were truncated in %sbinary-32 bit.php on line 55
82
+
83
+ Warning: Saw imprecise float binary literal - the last 2 non-zero bits were truncated in %sbinary-32 bit.php on line 56
84
+
85
+ Warning: Saw imprecise float binary literal - the last 3 non-zero bits were truncated in %sbinary-32 bit.php on line 57
86
+
87
+ Warning: Saw imprecise float binary literal - the last 4 non-zero bits were truncated in %sbinary-32 bit.php on line 58
88
+
89
+ Warning: Saw imprecise float binary literal - the last 5 non-zero bits were truncated in %sbinary-32 bit.php on line 59
90
+
91
+ Warning: Saw imprecise float binary literal - the last 6 non-zero bits were truncated in %sbinary-32 bit.php on line 60
92
+
93
+ Warning: Saw imprecise float binary literal - the last 7 non-zero bits were truncated in %sbinary-32 bit.php on line 61
94
+
95
+ Warning: Saw imprecise float binary literal - the last 8 non-zero bits were truncated in %sbinary-32 bit.php on line 62
96
+
97
+ Warning: Saw imprecise float binary literal - the last 9 non-zero bits were truncated in %sbinary-32 bit.php on line 63
98
+
99
+ Warning: Saw imprecise float binary literal - the last 10 non-zero bits were truncated in %sbinary-32 bit.php on line 64
100
+
101
+ Warning: Saw imprecise float binary literal - the last 11 non-zero bits were truncated in %sbinary-32 bit.php on line 65
102
+
103
+ Warning: Saw imprecise float binary literal - the last 11 non-zero bits were truncated in %sbinary-32 bit.php on line 67
104
+
105
+ Warning: Saw imprecise float binary literal - the last 10 non-zero bits were truncated in %sbinary-32 bit.php on line 68
106
+
107
+ Warning: Saw imprecise float binary literal - the last 9 non-zero bits were truncated in %sbinary-32 bit.php on line 69
81
108
int(1 )
82
109
int(3 )
83
110
int(7 )
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ foreach ($doubles as $d) {
22
22
echo "Done \n" ;
23
23
?>
24
24
--EXPECTF--
25
+ Warning: Saw imprecise float hex literal - the last 19 non-zero bits were truncated in %shex_overflow_32bit.php on line 5
26
+
27
+ Warning: Saw imprecise float hex literal - the last 51 non-zero bits were truncated in %shex_overflow_32bit.php on line 6
28
+
29
+ Warning: Saw imprecise float hex literal - the last 38 non-zero bits were truncated in %shex_overflow_32bit.php on line 7
25
30
float(4.0833602971%dE+14)
26
31
float(4.7223664828%dE+21)
27
32
float(1.3521606402%dE+31)
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Bug #79191 (Error in SoapClient ctor disables DOMDocument::save())
3
3
--SKIPIF--
4
4
<?php
5
5
if (!extension_loaded ('soap ' )) die ('skip soap extension not available ' );
6
- if (!extension_loaded ('dom ' )) die ('dom extension not available ' );
6
+ if (!extension_loaded ('dom ' )) die ('skip dom extension not available ' );
7
7
?>
8
8
--FILE--
9
9
<?php
Original file line number Diff line number Diff line change @@ -22,5 +22,6 @@ $ob = unserialize("a:3:{i:0;".serialize($sf).'i:1;R:12;i:2;R:10;}');
22
22
23
23
var_dump ($ ob [1 ]);
24
24
?>
25
- --EXPECT--
25
+ --EXPECTF--
26
+ Warning: Saw imprecise float hex literal - the last 10 non-zero bits were truncated in %sbug70211.php on line 3
26
27
string(6) "detail"
Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ Bug #67247 (spl_fixedarray_resize integer overflow)
4
4
<?php
5
5
$ ar = new SplFixedArray (1 );
6
6
echo "size: " .$ ar ->getSize ()."\n" ;
7
- $ ar ->setSize ((PHP_INT_SIZE ==8 )?0x2000000000000001 :0x40000001 );
7
+ $ ar ->setSize ((PHP_INT_SIZE ==8 )?0x2000_0000_0000_0001 :0x40000001 );
8
8
echo "size: " .$ ar ->getSize ()."\n" ;
9
9
?>
10
10
--EXPECTF--
11
+ Warning: Saw imprecise float hex literal - the last 9 non-zero bits were truncated in %sbug67247.php on line 4
11
12
size: 1
12
13
13
- Fatal error: Possible integer overflow in memory allocation (%d * %d + 0) in %s on line %d
14
+ Fatal error: Possible integer overflow in memory allocation (1073741825 * 16 + 0) in %sbug67247.php on line 4
You can’t perform that action at this time.
0 commit comments