php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59052 2.2.5 only works for *first* session then fails
Submitted: 2010-01-30 22:06 UTC Modified: 2013-02-18 00:35 UTC
From: apinstein at mac dot com Assigned:
Status: No Feedback Package: memcache (PECL)
PHP Version: 5.2.11 OS: Mac OS X 10.5
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: apinstein at mac dot com
New email:
PHP Version: OS:

 

 [2010-01-30 22:06 UTC] apinstein at mac dot com
Description:
------------
session_start() fails on all but first request in session.


Reproduce code:
---------------
I did a pecl install memcache (2.2.5) and added this to my app:

ini_set('session.save_handler', 'memcache');
ini_set('session.save_path', 'tcp://127.0.0.1:11211');

The first time a session is created, the page loads fine. Subsequent requests in the same session fail in session_start() with "Operation now in progress (36)".

I have isolated this problem to 2.2.5 by:
1) switching out the backend for toyko tyrant (which is memcache protocol compliant) -- same bug
1a) If I clear my session cookie it *works* the first time (although that does no good since it's a session).
2) downgrading to 2.2.4 -- works
3) I tried 3.0.4 but it wouldn't build so I didn't bother since 2.2.4 fixed it.

Expected result:
----------------
Sessions should work.

Actual result:
--------------
Subsequent requests in the same session fail in 
session_start() with "Operation now in progress (36)".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-10 22:12 UTC] hradtke@php.net
Please try 2.2.6.

Also, does the script below reproduce the failure?  I can't tell exactly what "session_start() fails on all but first request in session." means.

<?php
ini_set('session.save_handler', 'memcache');
ini_set('session.save_path', 'tcp://127.0.0.1:11211');

session_start();
session_start(); // <--- failure caused here
?>
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 18:02:40 2024 UTC