2 http_absolute_uri() with proto
5 extension_loaded('http') or die('ext/http not available');
6 strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
10 echo http_absolute_uri('sec', 'https'), "\n";
11 echo http_absolute_uri('/pub', 'ftp'), "\n";
12 echo http_absolute_uri('/', null), "\n";
15 Content-type: text/html