72 lines
1.1 KiB
PHP
72 lines
1.1 KiB
PHP
--TEST--
|
|
Test the handling large ports for the uri struct
|
|
--EXTENSIONS--
|
|
uri
|
|
zend_test
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(zend_test_uri_parser("https://example.com:42424242", "Uri\\Rfc3986\\Uri"));
|
|
|
|
?>
|
|
--EXPECT--
|
|
array(3) {
|
|
["normalized"]=>
|
|
array(8) {
|
|
["scheme"]=>
|
|
string(5) "https"
|
|
["username"]=>
|
|
NULL
|
|
["password"]=>
|
|
NULL
|
|
["host"]=>
|
|
string(11) "example.com"
|
|
["port"]=>
|
|
int(42424242)
|
|
["path"]=>
|
|
string(0) ""
|
|
["query"]=>
|
|
NULL
|
|
["fragment"]=>
|
|
NULL
|
|
}
|
|
["raw"]=>
|
|
array(8) {
|
|
["scheme"]=>
|
|
string(5) "https"
|
|
["username"]=>
|
|
NULL
|
|
["password"]=>
|
|
NULL
|
|
["host"]=>
|
|
string(11) "example.com"
|
|
["port"]=>
|
|
int(42424242)
|
|
["path"]=>
|
|
string(0) ""
|
|
["query"]=>
|
|
NULL
|
|
["fragment"]=>
|
|
NULL
|
|
}
|
|
["struct"]=>
|
|
array(8) {
|
|
["scheme"]=>
|
|
string(5) "https"
|
|
["username"]=>
|
|
NULL
|
|
["password"]=>
|
|
NULL
|
|
["host"]=>
|
|
string(11) "example.com"
|
|
["port"]=>
|
|
int(42424242)
|
|
["path"]=>
|
|
string(0) ""
|
|
["query"]=>
|
|
NULL
|
|
["fragment"]=>
|
|
NULL
|
|
}
|
|
}
|