From: webmaster at roydencom dot com
Operating system: Linux MDK10
PHP version: 5.0.0RC2
PHP Bug Type: Session related
Bug description: trans-sid not reliable (irregular appendix to absolute url on
localhost)
Description:
------------
Even if I'm runing smarty I think the following issue is clearly
php-related.
For mod_rewrite-reasons I need absolute url here so although having
trans-sid enabled I have to append the SID myself:
it looks as if php tries to add the sessionid in just one case (not every
time the same one) despite of having an absolute url.
if I add an any masked entity like the extra &PHPSESSID=dissapears.
Reproduce code:
---------------
//smarty initialisation in an include
if(empty($_COOKIE[CCNAME])) $this->assign("sessionstring","?".SID);
$this->assign("servername",$_SERVER["SERVER_NAME"]);
//in the template
{foreach from=$nav_produkte item=menupunkt}
<a
href="http://{$servername}/produkte/{$menupunkt.urlname}.html{$sessionstring}">{$menupunkt.displayname|default:$menupunkt.urlname}</a><br>
{/foreach}
Expected result:
----------------
<a
href="http://myhost.local/produkte/indien.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">Indien</a><br>
<a
href="http://myhost.local/produkte/thailand.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">Thailand</a><br>
<a
href="http://myhost.local/produkte/china.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">China</a>
Actual result:
--------------
href="http://myhost.local/produkte/indien.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">Indien</a><br>
<a
href="http://myhost.local/produkte/thailand.html?PHPSESSID=ep0od8amd17te5132usq3f0l73"&PHPSESSID=ep0od8amd17te5132usq3f0l73>Thailand</a><br>
<a
href="http://myhost.local/produkte/china.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">Astro</a><br>k23bn50u6">China</a><br>
//because smarty-side $sessionstring being "?PHPSESSID=.+" it looks like a
clear php-misbehaviour
--
Edit bug report at http://bugs.php.net/?id=28256&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28256&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28256&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28256&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28256&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28256&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28256&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28256&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28256&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28256&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28256&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28256&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28256&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28256&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28256&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28256&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28256&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28256&r=float