|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59654 Sessions never expire (TTL 0)
Submitted: 2011-03-06 07:12 UTC Modified: 2012-03-07 05:43 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: foo at b dot ar Assigned: andrei (profile)
Status: Closed Package: memcached (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: foo at b dot ar
New email:
PHP Version: OS:


 [2011-03-06 07:12 UTC] foo at b dot ar
The memcached extension reads ini values wrongly resulting in 
all values defaulting to 0 leading to session lifetimes being 

sess_lifetime = 
zend_ini_long(ZEND_STRL("session.gc_maxlifetime"), 0);

ZEND_STRL() makro is used even though zend_ini_long() seems 
to want the length of the string including the trailing \0.

Inconsistent APIs for the win.

Reproduce code:
ini_set('session.save_handler', 'memcached');


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-06 13:50 UTC]
This has been fixed in 2.0 branch already. I intend to release 
the 2.0 beta next week, so perhaps you could try it when it's 
 [2012-03-07 05:43 UTC]
-Status: Analyzed +Status: Closed -Assigned To: +Assigned To: andrei
 [2012-03-07 05:43 UTC]
Fixed in 2.0.1.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 17:01:29 2024 UTC