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--EXPECT--
19--> Testing ..9:
20int(0)
21float(0)
22bool(false)
23
24--> Testing .9.:
25int(0)
26float(0.9)
27bool(false)
28
29--> Testing 9..:
30int(9)
31float(9)
32bool(true)
33
34--> Testing 9.9.:
35int(9)
36float(9.9)
37bool(true)
38
39--> Testing 9.9.9:
40int(9)
41float(9.9)
42bool(true)
43