|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6837 Incorrect behaviour of echo with trans-sid enabled end session_start()
Submitted: 2000-09-21 18:32 UTC Modified: 2000-10-02 20:35 UTC
From: keks at rbcmail dot ru Assigned:
Status: Closed Package: Session related
PHP Version: 4.0 Latest CVS (21/09/2000) OS: RedHat 6.2, 2.2.16
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: keks at rbcmail dot ru
New email:
PHP Version: OS:


 [2000-09-21 18:32 UTC] keks at rbcmail dot ru
This small example
echo "<html><body>";
echo "<a href='$href'></a>";
echo "</body></html>";
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.

<a href="''? PHPSESSID=5e3faeaf95fd83a2df2288b804a55604">

PHP was compiled with following options
Apache is 1.3.12
--with-gd \
--with-calendar \
--enable-track-vars \
--enable-trans-sid \


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-21 18:36 UTC] keks at rbcmail dot ru
Also, parser add double quotes around any HTML elements, not only links.
For example echo "<input type=text value='$myvalue'>"
produces output like this
<input type="text" value="'value'">
 [2000-09-30 02:19 UTC]
I've added single quotes support a couple of days ago. Please try again.
 [2000-10-02 20:35 UTC] keks at rbcmail dot ru
It works just fine.
Now I have no core dumps while trans SID enabled and quotes, both singl and double, also handled in a rigth way.
Thank you !
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Apr 01 15:03:39 2023 UTC