xref: /PHP-7.2/ext/filter/tests/bug8315.phpt (revision 17ccbeec)
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