]> granicus.if.org Git - php/commitdiff
Fixed parse_url() tests to account for port validation
authorIlia Alshanetsky <iliaa@php.net>
Sun, 6 Feb 2011 17:23:57 +0000 (17:23 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 6 Feb 2011 17:23:57 +0000 (17:23 +0000)
ext/standard/tests/url/parse_url_basic_001.phpt
ext/standard/tests/url/parse_url_basic_002.phpt
ext/standard/tests/url/parse_url_basic_003.phpt
ext/standard/tests/url/parse_url_basic_004.phpt
ext/standard/tests/url/parse_url_basic_005.phpt
ext/standard/tests/url/parse_url_basic_006.phpt
ext/standard/tests/url/parse_url_basic_007.phpt
ext/standard/tests/url/parse_url_basic_008.phpt
ext/standard/tests/url/parse_url_basic_009.phpt

index 7b9d51399a802240560669a71eaee8ef38437a0d..1edc32eabad5380a7f786dc03d35537ef94ba131 100644 (file)
@@ -734,14 +734,7 @@ echo "Done";
   string(9) "/blah.com"
 }
 
---> x://::abc/?: array(3) {
-  ["scheme"]=>
-  string(1) "x"
-  ["host"]=>
-  string(1) ":"
-  ["path"]=>
-  string(1) "/"
-}
+--> x://::abc/?: bool(false)
 
 --> http://::?: array(2) {
   ["scheme"]=>
index f3ac770f0a166648d179d06b6aa38fd0deae5def..464e977ffc7a4f34a517f37efbc6eebcf2bae2f5 100644 (file)
@@ -94,7 +94,7 @@ echo "Done";
 --> http://x:?   : string(4) "http"
 --> x:blah.com   : string(1) "x"
 --> x:/blah.com   : string(1) "x"
---> x://::abc/?   : string(1) "x"
+--> x://::abc/?   : bool(false)
 --> http://::?   : string(4) "http"
 --> x://::6.5   : string(1) "x"
 --> http://?:/   : string(4) "http"
index dbd92088ae31227c3a02b274e01d5df14f32753a..57f182bfa311d3abee378a217f1e8fc8724871ca 100644 (file)
@@ -93,7 +93,7 @@ echo "Done";
 --> http://x:?   : string(1) "x"
 --> x:blah.com   : NULL
 --> x:/blah.com   : NULL
---> x://::abc/?   : string(1) ":"
+--> x://::abc/?   : bool(false)
 --> http://::?   : string(1) ":"
 --> x://::6.5   : string(1) ":"
 --> http://?:/   : string(1) "?"
index 387907f0ee9e32a4856b9acd6f59f06a01d2e272..6abf4ed453c9ef92ef448043a2cc33f8b41a3246 100644 (file)
@@ -93,7 +93,7 @@ echo "Done";
 --> http://x:?   : NULL
 --> x:blah.com   : NULL
 --> x:/blah.com   : NULL
---> x://::abc/?   : NULL
+--> x://::abc/?   : bool(false)
 --> http://::?   : NULL
 --> x://::6.5   : int(6)
 --> http://?:/   : NULL
index d44dcfef3904fd7f482b7fa509cef2b936bccbcc..3bcc89106d2e46d6343ea36e40b2802be8b8ebd7 100644 (file)
@@ -93,7 +93,7 @@ echo "Done";
 --> http://x:?   : NULL
 --> x:blah.com   : NULL
 --> x:/blah.com   : NULL
---> x://::abc/?   : NULL
+--> x://::abc/?   : bool(false)
 --> http://::?   : NULL
 --> x://::6.5   : NULL
 --> http://?:/   : NULL
index bd6d03efdeaa7ac01ae3834d84731dba4645572b..741a424a616d95e8d71c94f4bd4e6ddb8f852efc 100644 (file)
@@ -93,7 +93,7 @@ echo "Done";
 --> http://x:?   : NULL
 --> x:blah.com   : NULL
 --> x:/blah.com   : NULL
---> x://::abc/?   : NULL
+--> x://::abc/?   : bool(false)
 --> http://::?   : NULL
 --> x://::6.5   : NULL
 --> http://?:/   : NULL
index aa9f88ba546c4e8db567d11ff578315b37901977..bf8f98042e63f2591dfaa072025fe3115ecf5025 100644 (file)
@@ -93,7 +93,7 @@ echo "Done";
 --> http://x:?   : NULL
 --> x:blah.com   : string(8) "blah.com"
 --> x:/blah.com   : string(9) "/blah.com"
---> x://::abc/?   : string(1) "/"
+--> x://::abc/?   : bool(false)
 --> http://::?   : NULL
 --> x://::6.5   : NULL
 --> http://?:/   : string(1) "/"
index 7b166127f82c5595751760e11a184de9f736863a..a61fd06943cc07d2678ba1c0a5ba637cbf76b560 100644 (file)
@@ -93,7 +93,7 @@ echo "Done";
 --> http://x:?   : NULL
 --> x:blah.com   : NULL
 --> x:/blah.com   : NULL
---> x://::abc/?   : NULL
+--> x://::abc/?   : bool(false)
 --> http://::?   : NULL
 --> x://::6.5   : NULL
 --> http://?:/   : NULL
index a814546c52bb635c6cb121b4e4034ce7d398ff7f..5302388f6f51532d49ab5f10c8b18a08fba91481 100644 (file)
@@ -93,7 +93,7 @@ echo "Done";
 --> http://x:?   : NULL
 --> x:blah.com   : NULL
 --> x:/blah.com   : NULL
---> x://::abc/?   : NULL
+--> x://::abc/?   : bool(false)
 --> http://::?   : NULL
 --> x://::6.5   : NULL
 --> http://?:/   : NULL