Blame | Letzte Änderung | Log anzeigen | RSS feed
--TEST--absoluteURI() URL: http://example.org/subdir/test.php/?abc=123--GET----ENV--HTTP_HOST=example.orgSERVER_NAME=example.orgQUERY_STRING=abc=123SERVER_PORT=80PATH_INFO=/REQUEST_URI=/subdir/test.php/?abc=123SCRIPT_NAME=/subdir/test.php--FILE--<?php/*** This test checks that absoluteURI() still works with PATH_INFO being* just a / and QUERY_STRING passed to the script.** Relative URLs are resolved to the current script, stripping PATH_INFO** PHP version 4 and 5** @category HTTP* @package HTTP* @author Philippe Jausions <jausions@php.net>* @license http://www.opensource.org/licenses/bsd-license.php New BSD License* @link http://pear.php.net/package/HTTP*/require 'absoluteURI.inc';?>--EXPECT--|| => http://example.org/subdir/test.php/?abc=123?new=value|| => http://example.org/subdir/test.php/?new=value#anchor|| => http://example.org/subdir/test.php/?abc=123#anchor/page.html|| => http://example.org/page.htmlpage.html|| => http://example.org/subdir/page.htmlpage.html|http| => http://example.org/subdir/page.htmlpage.html|http|80 => http://example.org/subdir/page.htmlpage.html|http|8080 => http://example.org:8080/subdir/page.htmlpage.html|https| => https://example.org/subdir/page.htmlpage.html|https|443 => https://example.org/subdir/page.htmlpage.html||8080 => http://example.org:8080/subdir/page.htmlpage.html|https|8888 => https://example.org:8888/subdir/page.html