]> 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:32:07 +0000 (08:32 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 1 Aug 2006 08:32:07 +0000 (08:32 +0000)
ext/session/session.c

index 6d79ae1ec9833273fdeea2b0d341f43116ca15f4..ce578d7191c147abfb780a3a1803c197caa3e65c 100644 (file)
@@ -1553,8 +1553,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);