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: https://example.org:8443/subdir/test.php?abc=123
3
--GET--
4
--ENV--
5
HTTP_HOST=example.org
6
HTTPS=on
7
SERVER_NAME=example.org
8
QUERY_STRING=abc=123
9
SERVER_PORT=8443
10
REQUEST_URI=/subdir/test.php?abc=123
11
SCRIPT_NAME=/subdir/test.php
12
--FILE--
13
<?php
14
/**
15
 * This test checks that absoluteURI() still works with HTTP / HTTPS
16
 *
17
 * PHP version 4 and 5
18
 *
19
 * @category HTTP
20
 * @package  HTTP
21
 * @author   Philippe Jausions <jausions@php.net>
22
 * @license  http://www.opensource.org/licenses/bsd-license.php New BSD License
23
 * @link     http://pear.php.net/package/HTTP
24
 */
25
require 'absoluteURI.inc';
26
 
27
?>
28
--EXPECT--
29
||                   => https://example.org:8443/subdir/test.php?abc=123
30
?new=value||         => https://example.org:8443/subdir/test.php?new=value
31
#anchor||            => https://example.org:8443/subdir/test.php?abc=123#anchor
32
/page.html||         => https://example.org:8443/page.html
33
page.html||          => https://example.org:8443/subdir/page.html
34
page.html|http|      => http://example.org/subdir/page.html
35
page.html|http|80    => http://example.org/subdir/page.html
36
page.html|http|8080  => http://example.org:8080/subdir/page.html
37
page.html|https|     => https://example.org/subdir/page.html
38
page.html|https|443  => https://example.org/subdir/page.html
39
page.html||8080      => https://example.org:8080/subdir/page.html
40
page.html|https|8888 => https://example.org:8888/subdir/page.html