xref: /PHP-7.1/ext/filter/tests/bug39846.phpt (revision 7af945e2)
1--TEST--
2Bug #39846 (ipv4 trailing data validation)
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7var_dump(filter_var('192.168.1.100random-text-here', FILTER_VALIDATE_IP));
8var_dump(filter_var("192.168.1.155\0foo", FILTER_VALIDATE_IP));
9?>
10--EXPECT--
11bool(false)
12bool(false)
13