xref: /PHP-8.1/ext/filter/tests/bug8315.phpt (revision 74859783)
1--TEST--
2bug 8315, NULL values halt the validation
3--EXTENSIONS--
4filter
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