1--TEST--
2String conversion with multiple decimal points
3--FILE--
4<?php
5function test($str) {
6  echo "\n--> Testing $str:\n";
7  var_dump((int)$str);
8  var_dump((float)$str);
9  var_dump($str > 0);
10}
11
12test("..9");
13test(".9.");
14test("9..");
15test("9.9.");
16test("9.9.9");
17?>
18===DONE===
19--EXPECTF--
20--> Testing ..9:
21int(0)
22float(0)
23bool(false)
24
25--> Testing .9.:
26int(0)
27float(0.9)
28bool(true)
29
30--> Testing 9..:
31int(9)
32float(9)
33bool(true)
34
35--> Testing 9.9.:
36int(9)
37float(9.9)
38bool(true)
39
40--> Testing 9.9.9:
41int(9)
42float(9.9)
43bool(true)
44===DONE===
45