blob: 1b84cd6d0d83c36548349f7e04423c6d963eac55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--TEST--
Bug #28800 (Incorrect string to number conversion for strings starting with 'inf')
--FILE--
<?php
$strings = array('into', 'info', 'inf', 'infinity', 'infin', 'inflammable');
foreach ($strings as $v) {
echo ($v+0)."\n";
}
?>
--EXPECTF--
Warning: A non-numeric value encountered in %s on line %d
0
Warning: A non-numeric value encountered in %s on line %d
0
Warning: A non-numeric value encountered in %s on line %d
0
Warning: A non-numeric value encountered in %s on line %d
0
Warning: A non-numeric value encountered in %s on line %d
0
Warning: A non-numeric value encountered in %s on line %d
0
|