Public bug reported:

There is a bug in php5-memcached 1.0.0 (1.0.x).
Tested on Ubuntu 10.04 x64
The session.max_lifetime and the session.max_execution_time is not read 
correctly from the php.ini file.

In file php_memcached.c:
Wrong code:
    sess_lifetime = zend_ini_long(ZEND_STRL("session.gc_maxlifetime"), 0);
Bugfix:
    sess_lifetime = zend_ini_long("session.gc_maxlifetime", 
sizeof("session.gc_maxlifetime"), 0);

Description:
The ZEND_STRL makro returns the string length without the trailing zero but the 
zend_ini_long function expects it!

** Affects: php-memcached (Ubuntu)
     Importance: Undecided
         Status: New

-- 
php5-memcached module ignores session.gc_maxlifetime 
https://bugs.launchpad.net/bugs/676923
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to