note 96433 added to function.parse-url
| From: | james at roundeights dot com | Date: | Fri, 26 Feb 2010 19:24:33 +0000 |
| Subject: | note 96433 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-166410@lists.php.net to get a copy of this message | ||
I was writing unit tests and needed to cause this function to kick out an error and return FALSE in
order to test a specific execution path. If anyone else needs to force a failure, the following
inputs will work:
<?
parse_url("http:///blah.com");
parse_url("http://:80");
parse_url("http://user@:80");
?>
----
Server IP: 208.69.120.55
Probable Submitter: 70.103.74.8
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit -- https://master.php.net/note/edit/96433
Del: integrated -- https://master.php.net/note/delete/96433/integrated
Del: useless -- https://master.php.net/note/delete/96433/useless
Del: bad code -- https://master.php.net/note/delete/96433/bad+code
Del: spam -- https://master.php.net/note/delete/96433/spam
Del: non-english -- https://master.php.net/note/delete/96433/non-english
Del: in docs -- https://master.php.net/note/delete/96433/in+docs
Del: other reasons-- https://master.php.net/note/delete/96433
Reject -- https://master.php.net/note/reject/96433
Search -- https://master.php.net/manage/user-notes.php