Annotation of embedaddon/php/ext/filter/tests/bug8315.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: bug 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";
! 9: var_dump(filter_var($var, FILTER_VALIDATE_INT));
! 10: $var="3".chr(0)."foo";
! 11: var_dump(filter_var($var, FILTER_VALIDATE_FLOAT));
! 12: ?>
! 13: --EXPECT--
! 14: bool(false)
! 15: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>