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