]> granicus.if.org Git - php/commitdiff
MFH: fix #38278 (session_cache_expire()'s value does not match phpinfo's session...
authorAntony Dovgal <tony2001@php.net>
Tue, 1 Aug 2006 08:33:13 +0000 (08:33 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 1 Aug 2006 08:33:13 +0000 (08:33 +0000)
ext/session/session.c

index 98980e9280dbaec99f8a42a57449892b29edf81b..3fb3a08b59277da6840fed482c48bea3e4a4b5d8 100644 (file)
@@ -1405,8 +1405,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);