xref: /PHP-7.1/ext/filter/tests/bug7733.phpt (revision 7af945e2)
1--TEST--
2filter_data() Float exponential weird result
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7$data = array(
8		'E2',
9		'10E',
10		'2E-',
11		'E-2',
12		'+E2'
13		);
14$out = filter_var($data, FILTER_VALIDATE_FLOAT, FILTER_REQUIRE_ARRAY);
15var_dump($out);
16?>
17--EXPECTF--
18array(5) {
19  [0]=>
20  bool(false)
21  [1]=>
22  bool(false)
23  [2]=>
24  bool(false)
25  [3]=>
26  bool(false)
27  [4]=>
28  bool(false)
29}
30