1--TEST--
2Test parse_url() function : check values of URL related constants
3--FILE--
4<?php
5/*
6 *  check values of URL related constants
7 */
8foreach(get_defined_constants() as $constantName => $constantValue) {
9    if (strpos($constantName, 'PHP_URL')===0) {
10        echo "$constantName: $constantValue \n";
11    }
12}
13
14echo "Done";
15?>
16--EXPECT--
17PHP_URL_SCHEME: 0
18PHP_URL_HOST: 1
19PHP_URL_PORT: 2
20PHP_URL_USER: 3
21PHP_URL_PASS: 4
22PHP_URL_PATH: 5
23PHP_URL_QUERY: 6
24PHP_URL_FRAGMENT: 7
25Done
26