PHP 4.0 Bug #6837: Incorrect behaviour of echo with trans-sid enabled end session_start()
| From: | keks at rbcmail dot ru | Date: | Thu, 21 Sep 2000 22:32:06 +0000 |
| Subject: | PHP 4.0 Bug #6837: Incorrect behaviour of echo with trans-sid enabled end session_start() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33566@lists.php.net to get a copy of this message | ||
From: keks@rbcmail.ru
Operating system: RedHat 6.2, 2.2.16
PHP version: 4.0 Latest CVS (21/09/2000)
PHP Bug Type: *Session related
Bug description: Incorrect behaviour of echo with trans-sid enabled end session_start()
This small example
<?
session_start();
echo "<html><body>";
$href="bugs.php.net";
echo "<a href='$href'>bugs.php.net</a>";
echo "</body></html>";
exit;
?>
produces a bit unexpected output.
Notice additional double quotes aroud link string.
I think it's the problem of URL parser used while --enable-trans-sid, since without
session_start() its output is normal.
*** START OF OUTPUT ***
<html><body>
<a href="'bugs.php.net'?
PHPSESSID=5e3faeaf95fd83a2df2288b804a55604">bugs.php.net
</a>
</body></html>
*** END OF OUTPUT ***
PHP was compiled with following options
Apache is 1.3.12
--with-gd \
--with-calendar \
--enable-track-vars \
--enable-trans-sid \
--with-config-file-path=/etc