php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
<?
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



Patches

Pull Requests

History

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] sas@php.net
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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 04:01:27 2025 UTC