/PHP-7.2/ext/standard/tests/url/ |
H A D | parse_url_error_001.phpt | 2 Test parse_url() function : error conditions - wrong number of args 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 11 echo "*** Testing parse_url() : error conditions ***\n"; 14 echo "\n-- Testing parse_url() function with Zero arguments --\n"; 15 var_dump( parse_url() ); 17 //Test parse_url with one more than the expected number of arguments 22 var_dump( parse_url($url, $url_component, $extra_arg) ); 27 *** Testing parse_url() : error conditions *** 29 -- Testing parse_url() function with Zero arguments -- 31 Warning: parse_url() expects at least 1 parameter, 0 given in %s on line 12 [all …]
|
H A D | parse_url_variation_002_32bit.phpt | 2 Test parse_url() function : usage variations - unexpected type for arg 2. 7 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 echo "*** Testing parse_url() : usage variations ***\n"; 76 var_dump( parse_url($url, $value) ); 82 *** Testing parse_url() : usage variations *** 87 Error: 2 - parse_url(): Invalid URL component identifier 10, %s(%d) 111 Error: 2 - parse_url() expects parameter 2 to be integer, float given, %s(%d) 122 Error: 2 - parse_url() expects parameter 2 to be integer, array given, %s(%d) 127 Error: 2 - parse_url() expects parameter 2 to be integer, array given, %s(%d) 132 Error: 2 - parse_url() expects parameter 2 to be integer, array given, %s(%d) [all …]
|
H A D | parse_url_variation_002_64bit.phpt | 2 Test parse_url() function : usage variations - unexpected type for arg 2. 7 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 echo "*** Testing parse_url() : usage variations ***\n"; 76 var_dump( parse_url($url, $value) ); 82 *** Testing parse_url() : usage variations *** 87 Error: 2 - parse_url(): Invalid URL component identifier 10, %s(71) 111 Error: 2 - parse_url(): Invalid URL component identifier %d, %s(71) 122 Error: 2 - parse_url() expects parameter 2 to be integer, array given, %s(71) 127 Error: 2 - parse_url() expects parameter 2 to be integer, array given, %s(71) 132 Error: 2 - parse_url() expects parameter 2 to be integer, array given, %s(71) [all …]
|
H A D | parse_url_error_002.phpt | 2 Test parse_url() function: url component specifier out of range 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 11 echo "*** Testing parse_url() : error conditions: url component specifier out of range ***\n"; 15 var_dump(parse_url($url, -1)); 18 var_dump(parse_url($url, 99)); 23 *** Testing parse_url() : error conditions: url component specifier out of range *** 45 Warning: parse_url(): Invalid URL component identifier 99 in %s on line 15
|
H A D | bug69976.phpt | 5 var_dump(parse_url("/busca/?fq=B:20001")); 6 var_dump(parse_url("/busca/?fq=B:200013")); 7 var_dump(parse_url("/busca/?fq=home:01234")); 8 var_dump(parse_url("/busca/?fq=home:012345"));
|
H A D | bug63162.phpt | 2 Test parse_url() for bug #63162 10 var_dump(parse_url('http://user:pass@host')); 11 var_dump(parse_url('//user:pass@host')); 12 var_dump(parse_url('//user@host'));
|
H A D | bug74780.phpt | 2 Bug #74780 parse_url() borks when query string contains colon 6 parse_url('//php.net/path?query=1:2'), 7 parse_url('//php.net/path.php?query=a:b'), 8 parse_url('//username@php.net/path?query=1:2')
|
H A D | parse_url_variation_001.phpt | 2 Test parse_url() function : usage variations - unexpected type for arg 1. 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 16 echo "*** Testing parse_url() : usage variations ***\n"; 73 var_dump( parse_url($value) ); 79 *** Testing parse_url() : usage variations *** 139 Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) 144 Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) 149 Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) 154 Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) 159 Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) [all …]
|
H A D | bug73192.phpt | 2 Bug #73192: parse_url return wrong hostname 6 var_dump(parse_url("http://example.com:80#@google.com/")); 7 var_dump(parse_url("http://example.com:80?@google.com/"));
|
H A D | bug68917.phpt | 2 Bug #68917 (parse_url fails on some partial urls) 5 print_r(parse_url('//example.org:81/hi?a=b#c=d')); 6 print_r(parse_url('//example.org/hi?a=b#c=d'));
|
H A D | bug54180.phpt | 2 Bug #54180 (parse_url() incorrectly parses path when ? in fragment) 6 var_dump(parse_url("http://example.com/path/script.html?t=1#fragment?data")); 7 var_dump(parse_url("http://example.com/path/script.html#fragment?data"));
|
H A D | bug55399.phpt | 2 Bug #55399 (parse_url() incorrectly treats ':' as a valid path) 6 var_dump(parse_url(":"));
|
H A D | parse_url_relative_scheme.phpt | 2 Test parse_url() function: Checks relative URL schemes (e.g. "//example.com") 5 var_dump(parse_url('//example.org'));
|
H A D | parse_url_basic_010.phpt | 2 Test parse_url() function : check values of URL related constants 5 /* Prototype : proto mixed parse_url(string url, [int url_component])
|
H A D | bug77423.phpt | 2 Bug #77423 (parse_url() will deliver a wrong host to user) 11 var_dump(parse_url($url));
|
H A D | parse_url_basic_004.phpt | 2 Test parse_url() function: Parse a load of URLs without specifying PHP_URL_PORT as the URL component 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 var_dump(parse_url($url, PHP_URL_PORT));
|
H A D | parse_url_basic_006.phpt | 2 Test parse_url() function: Parse a load of URLs without specifying PHP_URL_PASS as the URL component 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 var_dump(parse_url($url, PHP_URL_PASS));
|
H A D | parse_url_basic_009.phpt | 2 Test parse_url() function: Parse a load of URLs without specifying PHP_URL_FRAGMENT as the URL comp… 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 var_dump(parse_url($url, PHP_URL_FRAGMENT));
|
H A D | parse_url_basic_005.phpt | 2 Test parse_url() function: Parse a load of URLs without specifying PHP_URL_USER as the URL component 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 var_dump(parse_url($url, PHP_URL_USER));
|
H A D | parse_url_basic_002.phpt | 2 Test parse_url() function: Parse a load of URLs without specifying PHP_URL_SCHEME as the URL compon… 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 var_dump(parse_url($url, PHP_URL_SCHEME));
|
H A D | parse_url_basic_008.phpt | 2 Test parse_url() function: Parse a load of URLs without specifying PHP_URL_QUERY as the URL compone… 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 var_dump(parse_url($url, PHP_URL_QUERY));
|
H A D | parse_url_basic_007.phpt | 2 Test parse_url() function: Parse a load of URLs without specifying PHP_URL_PATH as the URL component 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 var_dump(parse_url($url, PHP_URL_PATH));
|
H A D | parse_url_basic_003.phpt | 2 Test parse_url() function: Parse a load of URLs without specifying PHP_URL_HOST as the URL component 5 /* Prototype : proto mixed parse_url(string url, [int url_component]) 18 var_dump(parse_url($url, PHP_URL_HOST));
|
/PHP-7.2/ext/standard/ |
H A D | url.h | 43 PHP_FUNCTION(parse_url);
|
/PHP-7.2/ext/standard/tests/file/ |
H A D | bug38450.phpt | 16 $url = parse_url($path);
|