ID: 2393 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 3.0.12 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php as stated in the manual: parse_url() will try to parse even incomplete urls. it is meant for input parsing, not for validation Previous Comments: ------------------------------------------------------------------------ [2001-07-22 17:06:39] [EMAIL PROTECTED] reclassified ------------------------------------------------------------------------ [1999-09-27 19:06:38] [EMAIL PROTECTED] I use parse_url() to validate url's. But that does not work in my opinion very wel.. <? $url=parse_url("http://this is no host"); print $url["host"]; ?> print's out : this is no host That's not a valid host. It should be cool if parse_url did some regexp to check. Bram ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2393&edit=1
