Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 153) sorted by relevance

1234567

/PHP-5.5/ext/standard/tests/url/
H A Dparse_url_error_002.phpt2 Test parse_url() function: url component specifier out of range
5 /* Prototype : proto mixed parse_url(string url, [int url_component])
7 * Source code: ext/standard/url.c
11 echo "*** Testing parse_url() : error conditions: url component specifier out of range ***\n";
12 $url = 'http://secret:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_re…
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 ***
H A Dget_headers_error_002.phpt8 /* Prototype : proto array get_headers(string url[, int format])
10 * Source code: ext/standard/url.c
15 $url = 'http://php.net';
19 var_dump( get_headers($url, "#PHPTestFest2009 Norway") );
23 var_dump( get_headers($url, array()) );
32 var_dump( get_headers($url, $object) );
H A Dparse_url_error_001.phpt5 /* Prototype : proto mixed parse_url(string url, [int url_component])
7 * Source code: ext/standard/url.c
19 $url = 'string_val';
22 var_dump( parse_url($url, $url_component, $extra_arg) );
H A Dget_headers_error_001.phpt8 /* Prototype : proto array get_headers(string url[, int format])
10 * Source code: ext/standard/url.c
22 $url = 'string_val';
25 var_dump( get_headers($url, $format, $extra_arg) );
/PHP-5.5/ext/curl/tests/
H A Dcurl_error_basic.phpt2 curl_error() function - basic test for curl_error using a fake url
11 $url = "fakeURL";
12 $ip = gethostbyname($url);
13 if ($ip != $url) die("skip 'fakeURL' resolves to $ip\n");
26 $url = "fakeURL";
31 $ch = curl_init($url);
H A Dcurl_basic_015.phpt2 Test curl_init() function with $url parameter defined
9 $url = 'http://www.example.com/';
10 $ch = curl_init($url);
11 var_dump($url == curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
H A Dcurl_basic_017.phpt21 $url = "{$host}/get.php?test=get";
30 curl_setopt($chs[0], CURLOPT_URL, $url); //set the url we want to use
31 curl_setopt($chs[1], CURLOPT_URL, $url); //set the url we want to use
32 curl_setopt($chs[2], CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_basic_019.phpt12 $url = "http://{$host}/get.php?test=";
15 curl_setopt($ch, CURLOPT_URL, $url);
18 var_dump($url == $info);
H A Dcurl_copy_handle_basic_004.phpt16 $url = "{$host}/get.php?test=getpost&get_param=Hello%20World";
21 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_setopt_basic004.phpt17 $url = "{$host}/";
21 curl_setopt($ch, CURLOPT_URL, $url);
33 curl_setopt($ch, CURLOPT_URL, $url);
H A Dcurl_copy_handle_basic_001.phpt16 $url = "{$host}/get.php?test=getpost&get_param=Hello%20World";
21 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_basic_011.phpt21 $url = "{$host}/get.php?test=cookie";
27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_basic_012.phpt21 $url = "{$host}/get.php?test=httpversion";
27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_basic_013.phpt21 $url = "{$host}/get.php?test=httpversion";
27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_CURLOPT_READDATA.phpt14 $url = $host . '/get.php?test=post';
22 $ch = curl_init($url);
23 curl_setopt($ch, CURLOPT_URL, $url);
H A Dcurl_basic_001.phpt21 $url = "{$host}/get.php?test=get";
25 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_basic_002.phpt22 $url = "{$host}/get.php?test=get";
27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_basic_005.phpt22 $url = "{$host}/get.php?test=useragent";
28 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_copy_handle_basic_002.phpt15 $url = "{$host}/get.php?test=getpost";
22 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_copy_handle_basic_005.phpt16 $url = "{$host}/get.php?test=getpost";
23 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
/PHP-5.5/main/streams/
H A Dplain_wrapper.c1036 url += sizeof("file://") - 1; in php_plain_files_url_stater()
1056 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1064 url += sizeof("file://") - 1; in php_plain_files_unlink()
1071 ret = VCWD_UNLINK(url); in php_plain_files_unlink()
1258 url += sizeof("file://") - 1; in php_plain_files_rmdir()
1266 if (!php_win32_check_trailing_space(url, (int)strlen(url))) { in php_plain_files_rmdir()
1272 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir()
1293 int url_len = strlen(url); in php_plain_files_metadata()
1304 url += sizeof("file://") - 1; in php_plain_files_metadata()
1323 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata()
[all …]
/PHP-5.5/ext/filter/
H A Dlogical_filters.c450 php_url *url; in php_filter_validate_url() local
462 if (url == NULL) { in php_filter_validate_url()
466 …if (url->scheme != NULL && (!strcasecmp(url->scheme, "http") || !strcasecmp(url->scheme, "https"))… in php_filter_validate_url()
469 if (url->host == NULL) { in php_filter_validate_url()
473 e = url->host + strlen(url->host); in php_filter_validate_url()
474 s = url->host; in php_filter_validate_url()
490 url->scheme == NULL || in php_filter_validate_url()
492 …(url->host == NULL && (strcmp(url->scheme, "mailto") && strcmp(url->scheme, "news") && strcmp(url-… in php_filter_validate_url()
493 …((flags & FILTER_FLAG_PATH_REQUIRED) && url->path == NULL) || ((flags & FILTER_FLAG_QUERY_REQUIRED… in php_filter_validate_url()
496 php_url_free(url); in php_filter_validate_url()
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dbug43008.phpt2 Bug #43008 (php://filter uris ignore url encoded filternames and can't handle slashes)
9 $url = b""
16 var_dump(urlencode(file_get_contents($url)));
H A Dbug44034.phpt13 foreach($urls as $url) {
14 echo strtr($url, array("\r" => "\\r", "\n" => "\\n")) . "\n";
15 var_dump(file($url, FILE_IGNORE_NEW_LINES));
/PHP-5.5/ext/standard/tests/streams/
H A Dbug44818.phpt5 function test($url, $mode) {
6 echo "$url, $mode\n";
7 $fd = fopen($url, $mode);

Completed in 32 milliseconds

1234567