tony2001 Tue Aug 1 08:31:37 2006 UTC
Modified files:
/php-src/ext/session session.c
Log:
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.443&r2=1.444&diff_format=u
Index: php-src/ext/session/session.c
diff -u php-src/ext/session/session.c:1.443 php-src/ext/session/session.c:1.444
--- php-src/ext/session/session.c:1.443 Thu Jul 27 15:36:43 2006
+++ php-src/ext/session/session.c Tue Aug 1 08:31:37 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: session.c,v 1.443 2006/07/27 15:36:43 iliaa Exp $ */
+/* $Id: session.c,v 1.444 2006/08/01 08:31:37 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1442,8 +1442,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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php