xref: /PHP-5.3/ext/filter/tests/bug8315.phpt (revision 2c3db736)
1--TEST--
2bug 8315, NULL values halt the validation
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7
8$var="3".chr(0)."foo";
9var_dump(filter_var($var, FILTER_VALIDATE_INT));
10$var="3".chr(0)."foo";
11var_dump(filter_var($var, FILTER_VALIDATE_FLOAT));
12?>
13--EXPECT--
14bool(false)
15bool(false)
16