PHP 4.0 Bug #3549: phpsessid & include bug

From: Date: Mon, 21 Feb 2000 15:08:32 +0000
Subject: PHP 4.0 Bug #3549: phpsessid & include bug
Groups: php.dev 
Request: Send a blank email to php-dev+get-15751@lists.php.net to get a copy of this message
From: goral@unet.pl Operating system: Linux PHP version: 4.0 Beta 3 PHP Bug Type: Misbehaving function Bug description: phpsessid & include bug There seems to be a problem with phpsessid when using include function. I have enable-trans-sid ENABLED. Here's an example: Make test1.php, and put: <? session_register("my_link"); $my_link="mylink.php"; include "test2.php"; ?> In test2.php put: <a href="<?=$my_link?>">This is a link to <?=$my_link?></a> Now run test1.php and REJECT the cookie. You'll get: "This is a link to mylink.php" and the link is: ?PHPSESSID=53d33977231e561997cf0abbe90ac97d but is should be: mylink.php?PHPSESSID=53d33977231e561997cf0abbe90ac97d Is this a bug, or am I doing something wrong? PHP config: It runs as Apache mod, FreeType enabled GD enabled MySQL support enable-track-vars enable-trans-sid If someone needs more info, please email me.

« previous php.dev (#15751) next »