xref: /php-src/ext/filter/tests/bug7733.phpt (revision 74859783)
1--TEST--
2filter_var() Float exponential weird result
3--EXTENSIONS--
4filter
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--EXPECT--
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