php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26107 user defined session handlers cropping output.
Submitted: 2003-11-04 04:53 UTC Modified: 2003-11-07 03:35 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: debug at libertas-solutions dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.3 OS: XP
Private report: No CVE-ID: None
 [2003-11-04 04:53 UTC] debug at libertas-solutions dot com
Description:
------------
I have create a series of functions to manage the session information via a database.  but for some reason the end of the produced html is cropped dropping from 20768 btyes to 20399 bytes. and I get a internal server error if I attempt to use header redirects.

I have tracked it down to my session functions I believe that on the header redirects the output is trying to remove the tail if the output which is empty and is causeing php to crash

I have globals turned off and have initialised my software engine to be held in $GLOBALS["engine"]

the session functions can then call the database functions of the engine through the $GLOBAL variable, which are able to talk with multiple database types. mySql , msSQL , .....

these functions work but will crop the ends of the files.

Also it does not seen to crop the same amount on different pages but does seem to crop the same amount on the same page ie with a refresh on page one it will crop to the same place each time, as I am using templates and the footer of the web page is the same on all pages but the crop position is different on different URI's


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-04 06:58 UTC] debug at libertas dot dot dot com
I have a uploaded a tidied up version of the session code.

http://www.libertas-solutions.com/session.zip

I removed the debug code. if you want it back in just create a Global variable and add your debug content to it then print the global variable after the functions.

Adrian Sweeney
 [2003-11-06 15:00 UTC] sniper@php.net
You're doing something wrong, this works just fine for me with properly written script. (your example is not complete..)

 [2003-11-07 03:35 UTC] debug at libertas-solutions dot com
would you have an example that works that I could see?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 13:01:30 2024 UTC