mirror of
https://github.com/php/php-src.git
synced 2026-04-12 18:43:37 +02:00
(cherry picked from commit6c32d271d2) This should have already been merged via9cd82df0bb, but that merge went wrong.
24 lines
866 B
PHP
24 lines
866 B
PHP
--TEST--
|
|
Bug #74892 Url Rewriting (trans_sid) not working on urls that start with #
|
|
--FILE--
|
|
<?php
|
|
ini_set('session.use_cookies', '0');
|
|
ini_set('session.use_only_cookies',0);
|
|
ini_set('session.use_trans_sid',1);
|
|
ini_set('session.trans_sid_hosts','php.net');
|
|
session_id('sessionidhere');
|
|
session_start();
|
|
|
|
?>
|
|
<p><a href="index.php">Click This Anchor Tag!</a></p>
|
|
<p><a href="index.php#place">External link with anchor</a></p>
|
|
<p><a href="http://php.net#foo">External link with anchor 2</a></p>
|
|
<p><a href="#place">Internal link</a></p>
|
|
===DONE===
|
|
--EXPECT--
|
|
<p><a href="index.php?PHPSESSID=sessionidhere">Click This Anchor Tag!</a></p>
|
|
<p><a href="index.php?PHPSESSID=sessionidhere#place">External link with anchor</a></p>
|
|
<p><a href="http://php.net?PHPSESSID=sessionidhere#foo">External link with anchor 2</a></p>
|
|
<p><a href="#place">Internal link</a></p>
|
|
===DONE===
|