cvs: php-src(PHP_5_2) /ext/session session.c
| From: | Antony Dovgal | Date: | Tue, 01 Aug 2006 08:32:08 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/session session.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39687@lists.php.net to get a copy of this message | ||
tony2001 Tue Aug 1 08:32:08 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/session session.c
Log:
MFH: fix #38278 (session_cache_expire()'s value does not match phpinfo's
session.cache_expire)
http://cvs.php.net/viewvc.cgi/php-src/ext/session/session.c?r1=1.417.2.8.2.8&r2=1.417.2.8.2.9&diff_format=u
Index: php-src/ext/session/session.c
diff -u php-src/ext/session/session.c:1.417.2.8.2.8 php-src/ext/session/session.c:1.417.2.8.2.9
--- php-src/ext/session/session.c:1.417.2.8.2.8 Thu Jul 27 15:33:16 2006
+++ php-src/ext/session/session.c Tue Aug 1 08:32:07 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: session.c,v 1.417.2.8.2.8 2006/07/27 15:33:16 iliaa Exp $ */
+/* $Id: session.c,v 1.417.2.8.2.9 2006/08/01 08:32:07 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1553,8 +1553,8 @@
WRONG_PARAM_COUNT;
if (ac == 1) {
- convert_to_long_ex(p_cache_expire);
- PS(cache_expire) = Z_LVAL_PP(p_cache_expire);
+ convert_to_string_ex(p_cache_expire);
+ zend_alter_ini_entry("session.cache_expire", sizeof("session.cache_expire"),
Z_STRVAL_PP(p_cache_expire), Z_STRLEN_PP(p_cache_expire), ZEND_INI_USER, ZEND_INI_STAGE_RUNTIME);
}
RETVAL_LONG(old);