| Server IP : 217.160.0.251 / Your IP : 216.73.216.102 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u94981163 ( 8991765) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/php7.3/test/HTTP2/tests/ |
Upload File : |
--TEST-- absoluteURI() URL: http://example.org/subdir/test.php/extra_pathinfo/?abc=123 --GET-- --ENV-- HTTP_HOST=example.org SERVER_NAME=example.org QUERY_STRING=abc=123 SERVER_PORT=80 HTTPS=off PATH_INFO=/extra_pathinfo/ REQUEST_URI=/subdir/test.php/extra_pathinfo/?abc=123 SCRIPT_NAME=/subdir/test.php --FILE-- <?php /** * This test checks that absoluteURI() still works with PATH_INFO with * trailing / and QUERY_STRING passed to the script. It also tests that * HTTPS=off is handled properly. * * Relative URLs are resolved to the current script, stripping PATH_INFO * * PHP version 5 * * @category HTTP * @package HTTP2 * @author Philippe Jausions <jausions@php.net> * @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @link http://pear.php.net/package/HTTP2 */ require 'absoluteURI.inc'; ?> --EXPECT-- || => http://example.org/subdir/test.php/extra_pathinfo/?abc=123 ?new=value|| => http://example.org/subdir/test.php/extra_pathinfo/?new=value #anchor|| => http://example.org/subdir/test.php/extra_pathinfo/?abc=123#anchor /page.html|| => http://example.org/page.html page.html|| => http://example.org/subdir/page.html page.html|http| => http://example.org/subdir/page.html page.html|http|80 => http://example.org/subdir/page.html page.html|http|8080 => http://example.org:8080/subdir/page.html page.html|https| => https://example.org/subdir/page.html page.html|https|443 => https://example.org/subdir/page.html page.html||8080 => http://example.org:8080/subdir/page.html page.html|https|8888 => https://example.org:8888/subdir/page.html