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