PHP 4.0 Bug #8686 Updated: Starting a session corrupts reading of external files.

From: Date: Sat, 20 Jan 2001 08:03:01 +0000
Subject: PHP 4.0 Bug #8686 Updated: Starting a session corrupts reading of external files.
Groups: php.dev 
Request: Send a blank email to php-dev+get-44628@lists.php.net to get a copy of this message
ID: 8686 Updated by: sas Reported By: derek@friendlysoftware.com Old-Status: Duplicate Status: Closed Bug Type: *Session related Assigned To: Comments: Please upgrade to PHP 4.0.4 or later. If you are not using the transparent session id propagation feature, please reopen this report. I cannot reproduce the failure with the latest CVS. Previous Comments: --------------------------------------------------------------------------- [2001-01-19 20:22:23] cynic@php.net duplicate of #8311 --------------------------------------------------------------------------- [2001-01-12 16:56:09] derek@friendlysoftware.com When I begin a session, using "session_start()" and then read in a file using file(), readfile(), or require(), the contents of the file get corrupted with double quote characters. Here's a sample file to read in (name it "test_file.txt"): <a.b=[] Here's a PHP webpage that displays corrupted output: <?php session_start(); readfile( 'test_file.txt' ); ?> The corrupted output is: <a.b="[]" If the call to session_start() is removed from the above script, the output matches the sample file contents. Also if any of the characters are removed from the sample file, the readfile() works fine, so there's something specific to the text in the sample file that disagrees with session_start(). FYI, the sample file is small section of javascript in an HTML file I am using. I pared down the javascript/HTML to this small section that was getting corrupted. I'm trying to echo different HTML files depending on session variables I set. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8686

« previous php.dev (#44628) next »