summaryrefslogtreecommitdiff
path: root/tests/lang/bug28800.phpt
blob: 8bd2c306e1b583f8529dca94784f944318ce5d2a (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
28
29
--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