php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6102 Problem with CR/LF in strings using ISAPI-Module
Submitted: 2000-08-11 04:11 UTC Modified: 2000-09-03 09:31 UTC
From: michael at maz-sound dot de Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.1pl2 OS: Win 2000 pro
Private report: No CVE-ID: None
 [2000-08-11 04:11 UTC] michael at maz-sound dot de
Hi,

I am using the ISAPI-DLL with IIS5. For some reason I wanted to include a part of my pages final HTML-output in the session.

But with the next request after the output is written in the session, the session starts again and everything saved in it is lost.

Using PHP as CGI everything works fine.

More details :

Using the same Text (containing 58 CR/LFs in it) 
the IIS-Version shows ... ;s:2345:" ...
the CGI-Version shows ... ;s:2403:" ...

(The text including the CR/LFs is excactly 2403 bytes long)

I do not register the variable with the text directly to the session, instead I register 1 object with all my session-stuff in it, including this text.
Besides the string length there are no differences in the session-file with the CGI/ISAPI-version.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-13 04:32 UTC] stas@php.net
Please try latest CVS, I remember some patch dealing with this.
 [2000-08-13 12:51 UTC] michael at maz-sound dot de
Sorry, the latest version I can test is the CVS from 01.08. because there exists a windows build, I am currently not able to build it myself.

In this version the problem is still the same as described.
 [2000-08-13 17:12 UTC] michael at maz-sound dot de
Thanks to James Moore I was able to test the latest CVS-verion now :

The problem seems to be gone, the session doesn't restart anymore when adding the text to the it.
But the difference between the session-file using the IIS and the CGI version is still there as described.
So I don't know if this behaviour is intended, maybe one of the developers knows more about it.
 [2000-09-02 18:02 UTC] sniper@php.net
What's the situation with this? Does this problem still exist
with the php4.0.2  (release) ? Or latest CVS?

--Jani
 [2000-09-03 09:03 UTC] michael at maz-sound dot de
Its still the same as with the 4.0.2 CVS I tried some time ago.

First of all, it doesn't make any problems, it still works.

The IIS-Version still writes another value in the session-file compared with the CGi-version (as described).
 [2000-09-03 09:31 UTC] sniper@php.net
So it's just IIS which behaves differently. If I understood correctly,
this isn't any bug at all. And if it works the same..

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 19:01:31 2024 UTC