php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8311 quotes added when using session_start
Submitted: 2000-12-18 07:00 UTC Modified: 2001-01-20 03:01 UTC
From: Stefan dot Maris at 01-soft dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.3pl1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Stefan dot Maris at 01-soft dot com
New email:
PHP Version: OS:

 

 [2000-12-18 07:00 UTC] Stefan dot Maris at 01-soft dot com
using IIS 5.0 and php4.0.3pl1 as an ISAPI module;

referring to bug ID #8271:

the problem does not seem to be related to the "include()" statement...

I have some code generating a clientside java script to generate a form input (tested wit hand without the include stuff):

   print " document.writeln(\"<input type=\\\"checkbox\\\" ...>\");";

including the session_start() statement generates the following code:

   document.writeln("<input type="\""checkbox\" ... >");

resulting in a browser error...

comment the session_start() out and the code looks like:

   document.writeln("<input type=\"checkbox\" ... >");

as should be...


Second test:

print " document.writeln(\"<input type=checkbox ...>\");";

including the session_start() statement generates the following code:

   document.writeln("<input type="checkbox" ... >");

resulting in a browser error...

comment the session_start() out and the code looks like:

   document.writeln("<input type=checkbox ... >");

as should be...


The problem does not occurr when hosting the page on Linux/Apache...

Regards

Stefan

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-19 20:22 UTC] cynic@php.net
reclassifying.
BTW, this is not IIS-specific, it has been reported for Mandrake too (#8686).
 [2001-01-20 03:01 UTC] sas@php.net
(I assume you are using the transparent session ID propagation feature.)

This issue has been addressed in PHP 4.0.4.  An upgrade to the latest version should cure the problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 07:01:31 2024 UTC