Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
absoluteURI() URL: http://example.org/subdir/
3
--GET--
4
--ENV--
5
HTTP_HOST=example.org
6
SERVER_NAME=example.org
7
SERVER_PORT=80
8
REQUEST_URI=/subdir/
9
SCRIPT_NAME=/subdir/index.php
10
--FILE--
11
<?php
12
/**
13
 * This test checks that absoluteURI() still works even when the script name
14
 * is a default "index" file, and doesn't appear in the calling URI.
15
 *
16
 * PHP version 4 and 5
17
 *
18
 * @category HTTP
19
 * @package  HTTP
20
 * @author   Philippe Jausions <jausions@php.net>
21
 * @license  http://www.opensource.org/licenses/bsd-license.php New BSD License
22
 * @link     http://pear.php.net/package/HTTP
23
 */
24
require 'absoluteURI.inc';
25
 
26
?>
27
--EXPECT--
28
||                   => http://example.org/subdir/
29
?new=value||         => http://example.org/subdir/?new=value
30
#anchor||            => http://example.org/subdir/#anchor
31
/page.html||         => http://example.org/page.html
32
page.html||          => http://example.org/subdir/page.html
33
page.html|http|      => http://example.org/subdir/page.html
34
page.html|http|80    => http://example.org/subdir/page.html
35
page.html|http|8080  => http://example.org:8080/subdir/page.html
36
page.html|https|     => https://example.org/subdir/page.html
37
page.html|https|443  => https://example.org/subdir/page.html
38
page.html||8080      => http://example.org:8080/subdir/page.html
39
page.html|https|8888 => https://example.org:8888/subdir/page.html