![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #39846 (ipv4 trailing data validation) ! 3: --SKIPIF-- ! 4: <?php if (!extension_loaded("filter")) die("skip"); ?> ! 5: --FILE-- ! 6: <?php ! 7: var_dump(filter_var('192.168.1.100random-text-here', FILTER_VALIDATE_IP)); ! 8: var_dump(filter_var("192.168.1.155\0foo", FILTER_VALIDATE_IP)); ! 9: ?> ! 10: --EXPECT-- ! 11: bool(false) ! 12: bool(false)