/php-src/ext/standard/tests/file/ |
H A D | bug44034.phpt | 13 foreach($urls as $url) { 14 echo strtr($url, array("\r" => "\\r", "\n" => "\\n")) . "\n"; 15 var_dump(file($url, FILE_IGNORE_NEW_LINES));
|
H A D | bug52820.phpt | 19 function do_stuff($url) { 23 curl_setopt($handle, CURLOPT_STDERR, $o = fopen($url, "w+"));
|
H A D | include_userstream_002.phpt | 2 local user streams must not be able to open() url's
|
H A D | userstreams.phpt | 178 $b = @fopen("bogon://url", "rb");
|
/php-src/ext/standard/tests/general_functions/ |
H A D | url_rewriting_basic1.phpt | 25 <a href="//url-rewriter.com/foo.php"></a> 26 <a href="http://url-rewriter.com/foo.php"></a> 27 <a href="bad://url-rewriter.com/foo.php"></a> 28 <a href="//www.url-rewriter.com/foo.php"></a> 53 ini_set('url_rewriter.hosts', 'url-rewriter.com'); 97 <a href="bad://url-rewriter.com/foo.php"></a> 98 <a href="//www.url-rewriter.com/foo.php"></a> 133 <a href="//url-rewriter.com/foo.php"></a> 134 <a href="http://url-rewriter.com/foo.php"></a> 135 <a href="bad://url-rewriter.com/foo.php"></a> [all …]
|
H A D | url_rewriting_basic2.phpt | 25 <a href="//url-rewriter.com/foo.php"></a> 26 <a href="http://url-rewriter.com/foo.php"></a> 27 <a href="bad://url-rewriter.com/foo.php"></a> 28 <a href="//www.url-rewriter.com/foo.php"></a> 53 ini_set('url_rewriter.hosts', 'url-rewriter.com'); 108 <a href="bad://url-rewriter.com/foo.php"></a> 109 <a href="//www.url-rewriter.com/foo.php"></a> 146 <a href="bad://url-rewriter.com/foo.php"></a> 147 <a href="//www.url-rewriter.com/foo.php"></a> 184 <a href="bad://url-rewriter.com/foo.php"></a> [all …]
|
H A D | url_rewriting_basic3.phpt | 25 <a href="//url-rewriter.com/foo.php"></a> 26 <a href="http://url-rewriter.com/foo.php"></a> 27 <a href="bad://url-rewriter.com/foo.php"></a> 28 <a href="//www.url-rewriter.com/foo.php"></a> 99 <a href="//url-rewriter.com/foo.php"></a> 100 <a href="http://url-rewriter.com/foo.php"></a> 101 <a href="bad://url-rewriter.com/foo.php"></a> 102 <a href="//www.url-rewriter.com/foo.php"></a> 139 <a href="bad://url-rewriter.com/foo.php"></a> 140 <a href="//www.url-rewriter.com/foo.php"></a> [all …]
|
/php-src/ext/standard/tests/http/ |
H A D | bug78719.phpt | 11 $url = str_repeat('*', 2000); 13 "data://text/plain,HTTP/1.0 302 Ok\r\nLocation: $url\r\n\r\nBody", 20 var_dump(stream_get_meta_data($stream)['wrapper_data'][1] === "Location: $url");
|
/php-src/ext/standard/tests/streams/ |
H A D | bug40459.phpt | 21 function url_stat($url, $flags) 27 function unlink($url) 47 function dir_opendir($url, $options)
|
H A D | bug44818.phpt | 5 function test($url, $mode) { 6 echo "$url, $mode\n"; 7 $fd = fopen($url, $mode);
|
/php-src/ext/standard/tests/strings/ |
H A D | url_t.phpt | 77 foreach ($sample_urls as $url) { 78 echo "\n--> $url: "; 79 var_dump(@parse_url($url)); 82 …$url = 'http://secret:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_r… 84 var_dump(parse_url($url, $v));
|
/php-src/ext/standard/tests/url/ |
H A D | parse_url_basic_001.phpt | 10 foreach ($urls as $url) { 11 echo "\n--> $url: "; 12 var_dump(parse_url($url));
|
H A D | parse_url_basic_002.phpt | 10 foreach ($urls as $url) { 11 echo "--> $url : "; 12 var_dump(parse_url($url, PHP_URL_SCHEME));
|
H A D | parse_url_basic_003.phpt | 10 foreach ($urls as $url) { 11 echo "--> $url : "; 12 var_dump(parse_url($url, PHP_URL_HOST));
|
H A D | parse_url_basic_004.phpt | 10 foreach ($urls as $url) { 11 echo "--> $url : "; 12 var_dump(parse_url($url, PHP_URL_PORT));
|
H A D | parse_url_basic_005.phpt | 10 foreach ($urls as $url) { 11 echo "--> $url : "; 12 var_dump(parse_url($url, PHP_URL_USER));
|
H A D | parse_url_basic_006.phpt | 10 foreach ($urls as $url) { 11 echo "--> $url : "; 12 var_dump(parse_url($url, PHP_URL_PASS));
|
H A D | parse_url_basic_007.phpt | 10 foreach ($urls as $url) { 11 echo "--> $url : "; 12 var_dump(parse_url($url, PHP_URL_PATH));
|
H A D | parse_url_basic_008.phpt | 10 foreach ($urls as $url) { 11 echo "--> $url : "; 12 var_dump(parse_url($url, PHP_URL_QUERY));
|
H A D | parse_url_basic_009.phpt | 10 foreach ($urls as $url) { 11 echo "--> $url : "; 12 var_dump(parse_url($url, PHP_URL_FRAGMENT));
|
H A D | parse_url_error_002.phpt | 2 Test parse_url() function: url component specifier out of range 5 echo "*** Testing parse_url() : error conditions: url component specifier out of range ***\n"; 6 $url = 'http://secret:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_re… 9 var_dump(parse_url($url, -1)); 13 parse_url($url, 99); 21 *** Testing parse_url() : error conditions: url component specifier out of range ***
|
H A D | parse_url_unterminated.phpt | 14 foreach ($urls as $url) { 15 echo "\n--> $url: "; 16 $str = zend_create_unterminated_string($url);
|
/php-src/ext/standard/ |
H A D | url.c | 682 char *url; in PHP_FUNCTION() local 691 Z_PARAM_PATH(url, url_len) in PHP_FUNCTION() 699 …if (!(stream = php_stream_open_wrapper_ex(url, "r", REPORT_ERRORS | STREAM_USE_URL | STREAM_ONLY_G… in PHP_FUNCTION()
|
H A D | url_scanner_ex.h | 26 PHPAPI char *php_url_scanner_adapt_single_url(const char *url, size_t urllen, const char *name, con…
|
H A D | url_scanner_ex.re | 35 #include "url.h" 190 url_parts = php_url_parse_ex(ZSTR_VAL(url->s), ZSTR_LEN(url->s)); 194 smart_str_append_smart_str(dest, url); 199 if (url_parts->fragment && '#' == ZSTR_VAL(url->s)[0]) { 200 smart_str_append_smart_str(dest, url); 209 smart_str_append_smart_str(dest, url); 220 smart_str_append_smart_str(dest, url); 233 smart_str_append_smart_str(dest, url); 244 } else if (*(ZSTR_VAL(url->s)) == '/' && *(ZSTR_VAL(url->s)+1) == '/') { 594 smart_str_appendl(&surl, url, urllen); [all …]
|