From: Antony Dovgal Date: Tue, 1 Aug 2006 08:31:37 +0000 (+0000) Subject: fix #38278 (session_cache_expire()'s value does not match phpinfo's session.cache_expire) X-Git-Tag: RELEASE_1_0_0RC1~2153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=873b6d87c68612a3f60a3fa8f1fcd286f7c2f068;p=php fix #38278 (session_cache_expire()'s value does not match phpinfo's session.cache_expire) --- diff --git a/ext/session/session.c b/ext/session/session.c index 39b247ed8e..b5d0225e63 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1442,8 +1442,8 @@ PHP_FUNCTION(session_cache_expire) 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);