From: Sascha Schumann Date: Thu, 20 Feb 2003 08:32:41 +0000 (+0000) Subject: merge minor differences from head X-Git-Tag: php-4.3.2RC1~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f63d9b778f74c3a42223001751f605eba4f49c28;p=php merge minor differences from head --- diff --git a/ext/session/session.c b/ext/session/session.c index 28235943a8..49b23f6a40 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1127,10 +1127,7 @@ PHP_FUNCTION(session_get_cookie_params) WRONG_PARAM_COUNT; } - if (array_init(return_value) == FAILURE) { - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Cannot initialize return value from session_get_cookie_parameters"); - RETURN_FALSE; - } + array_init(return_value); add_assoc_long(return_value, "lifetime", PS(cookie_lifetime)); add_assoc_string(return_value, "path", PS(cookie_path), 1); @@ -1470,7 +1467,7 @@ PHP_FUNCTION(session_decode) convert_to_string_ex(str); php_session_decode(Z_STRVAL_PP(str), Z_STRLEN_PP(str) TSRMLS_CC); - + RETURN_TRUE; } /* }}} */ @@ -1622,6 +1619,7 @@ PHP_MINIT_FUNCTION(session) PS(module_number) = module_number; /* if we really need this var we need to init it in zts mode as well! */ + PS(session_status) = php_session_none; REGISTER_INI_ENTRIES(); #ifdef HAVE_LIBMM