Your message dated Thu, 07 Jun 2012 21:47:27 +0000
with message-id <[email protected]>
and subject line Bug#664856: fixed in php-memcached 1.0.2-1+squeeze2
has caused the Debian Bug report #664856,
regarding php5-memcached: option session.gc_maxlifetime has no effect
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
664856: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664856
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php5-memcached
Version: 1.0.2-1
Severity: important
Tags: upstream patch

Sessions never expire when using the "memcached" handler.

on line 2525 of php_memcached.c
sess_lifetime = zend_ini_long(ZEND_STRL("session.gc_maxlifetime"), 0);
must be replaced by
sess_lifetime = zend_ini_long(ZEND_STRS("session.gc_maxlifetime"), 0);

zend_ini_long() expects a string length including the
termination zero byte. As such, the ZEND_STRS macro has to be
used and not the ZEND_STRL.

the same bug exists with "max_execution_time" but do not seems to cause
frequent problems



Patch:

--- memcached-1.0.2/php_memcached.c.orig        1970-01-01 10:13:08.000000000
+0100
+++ memcached-1.0.2/php_memcached.c     2011-02-26 21:51:07.652023126 +0100
@@ -2412,7 +2412,7 @@
        memcached_return status;
        /* set max timeout for session_start = max_execution_time.  (c) Andrei
Darashenka, Richter & Poweleit GmbH */

-       lock_maxwait = zend_ini_long(ZEND_STRL("max_execution_time"), 0);
+       lock_maxwait = zend_ini_long(ZEND_STRS("max_execution_time"), 0);
        if (lock_maxwait <= 0) {
                lock_maxwait = MEMC_SESS_LOCK_EXPIRATION;
        }
@@ -2522,7 +2522,7 @@
        memcached_st *memc_sess = PS_GET_MOD_DATA();

        sess_key_len = spprintf(&sess_key, 0, "memc.sess.key.%s", key);
-       sess_lifetime = zend_ini_long(ZEND_STRL("session.gc_maxlifetime"), 0);
+       sess_lifetime = zend_ini_long(ZEND_STRS("session.gc_maxlifetime"), 0);
        if (sess_lifetime > 0) {
                expiration = time(NULL) + sess_lifetime;
        } else {



see https://bugs.php.net/bug.php?id=59641 for details



-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



--- End Message ---
--- Begin Message ---
Source: php-memcached
Source-Version: 1.0.2-1+squeeze2

We believe that the bug you reported is fixed in the latest version of
php-memcached, which is due to be installed in the Debian FTP archive:

php-memcached_1.0.2-1+squeeze2.debian.tar.gz
  to main/p/php-memcached/php-memcached_1.0.2-1+squeeze2.debian.tar.gz
php-memcached_1.0.2-1+squeeze2.dsc
  to main/p/php-memcached/php-memcached_1.0.2-1+squeeze2.dsc
php5-memcached_1.0.2-1+squeeze2_amd64.deb
  to main/p/php-memcached/php5-memcached_1.0.2-1+squeeze2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sergey B Kirpichev <[email protected]> (supplier of updated php-memcached 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 23 Mar 2012 01:07:16 +0400
Source: php-memcached
Binary: php5-memcached
Architecture: source amd64
Version: 1.0.2-1+squeeze2
Distribution: stable
Urgency: low
Maintainer: Sergey B Kirpichev <[email protected]>
Changed-By: Sergey B Kirpichev <[email protected]>
Description: 
 php5-memcached - memcached extension module for PHP5
Closes: 664856
Changes: 
 php-memcached (1.0.2-1+squeeze2) stable; urgency=low
 .
   * Apply patch from upstream to fix broken session.gc_maxlifetime
     handling (sessions never expire).  Closes: #664856.
Checksums-Sha1: 
 8c41770a44612225f3254779a70e69383fb84396 1161 
php-memcached_1.0.2-1+squeeze2.dsc
 5a88b8dc2a0bf0a4d5ab525e5f46209e4dd3430f 4991 
php-memcached_1.0.2-1+squeeze2.debian.tar.gz
 a2bcad2f4f41b73a6ed733d138327401767e43af 27690 
php5-memcached_1.0.2-1+squeeze2_amd64.deb
Checksums-Sha256: 
 bd8790e572000ed84be0461f2528562d730de0ce0885e1d566d2e3f5d9b9064e 1161 
php-memcached_1.0.2-1+squeeze2.dsc
 9a8c58847713a693c82461a950b3be0583ef413ecee09cfd692235b9e48e9611 4991 
php-memcached_1.0.2-1+squeeze2.debian.tar.gz
 d17de516e880351ac77a958f10ae89f9d96632cbd952ce93beb2921314ce5098 27690 
php5-memcached_1.0.2-1+squeeze2_amd64.deb
Files: 
 783176269adb545928398a281be271f8 1161 php optional 
php-memcached_1.0.2-1+squeeze2.dsc
 0f7dd57ba398909b9795c26de11242ba 4991 php optional 
php-memcached_1.0.2-1+squeeze2.debian.tar.gz
 ddeb5a81ad5046cb4e1a4226e7740db4 27690 php optional 
php5-memcached_1.0.2-1+squeeze2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk/ONcAACgkQFViURZnoHaDjzQCgiioQBm6ZNOq69qhDn38CqJLJ
Rt0AnjQUFqQC5ZcRGsxdhshFgUQnLCTX
=arqm
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to