php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22630 session_start(): read returned less bytes than requested
Submitted: 2003-03-11 02:50 UTC Modified: 2003-03-12 01:55 UTC
From: birkhofer at vseth dot ethz dot ch Assigned:
Status: Closed Package: Session related
PHP Version: 4.3.1 OS: Linux-ppc (Debian)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 + 3 = ?
Subscribe to this entry?

 
 [2003-03-11 02:50 UTC] birkhofer at vseth dot ethz dot ch
This bug exists in 4.3.0 and 4.3.1 but *not* in 4.2.3. I installed 4.2.3 over 4.3.1. 

./configure --with-ldap --with-mysql --with-apxs

<?
session_start();
if ( session_is_registered( "foo" )) echo $_SESSION["foo"];
$_SESSION["foo"] = "bar";
?>

Problem: session_start() generates the error

session_start(): read returned less bytes than requested in /var/www/session.php on line 2

the 2nd++ time the page is loaded.

- If no Session variable is set there's no error
- /tmp/sess_.. looks fine:
    foo|s:3:"bar";


PHP is the only 'custom' software, all the other apps are part of Debian stable. The box is a PowerMac (ppc). 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-12 01:55 UTC] birkhofer at vseth dot ethz dot ch
The bug does not appear in the latest CVS-stable version.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC