blob: 8fecb9d8ebaefa3a76c8ec827c0e8e6e9b71453d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--TEST--
Test parse_url() function : check values of URL related constants
--FILE--
<?php
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
* Alias to functions:
*/
/*
* check values of URL related constants
*/
foreach(get_defined_constants() as $constantName => $constantValue) {
if (strpos($constantName, 'PHP_URL')===0) {
echo "$constantName: $constantValue \n";
}
}
echo "Done";
?>
--EXPECT--
PHP_URL_SCHEME: 0
PHP_URL_HOST: 1
PHP_URL_PORT: 2
PHP_URL_USER: 3
PHP_URL_PASS: 4
PHP_URL_PATH: 5
PHP_URL_QUERY: 6
PHP_URL_FRAGMENT: 7
Done
|