note 96433 modified in function.parse-url by danbrown

From: Date: Fri, 26 Feb 2010 19:33:51 +0000
Subject: note 96433 modified in function.parse-url by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166414@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: <?php parse_url("http:///example.com"); parse_url("http://:80"); parse_url("http://user@:80"); ?> --was-- 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"); ?> http://php.net/manual/en/function.parse-url.php

« previous php.notes (#166414) next »