xref: /PHP-8.0/ext/filter/tests/bug67167.02.phpt (revision 7aacc705)
1--TEST--
2Bug #67167: filter_var(null,FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE) returns null
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7var_dump(filter_var(
8    null,
9    FILTER_VALIDATE_BOOLEAN,
10    FILTER_NULL_ON_FAILURE
11));
12?>
13--XFAIL--
14Requires php_zval_filter to not use convert_to_string for all filters.
15--EXPECT--
16NULL
17