xref: /PHP-8.2/ext/filter/tests/bug39846.phpt (revision 74859783)
1--TEST--
2Bug #39846 (ipv4 trailing data validation)
3--EXTENSIONS--
4filter
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