xref: /PHP-5.6/ext/filter/tests/bug39846.phpt (revision 2c3db736)
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