diff options
Diffstat (limited to 'ext/session/tests/session_set_cookie_params_variation1.phpt')
-rw-r--r-- | ext/session/tests/session_set_cookie_params_variation1.phpt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ext/session/tests/session_set_cookie_params_variation1.phpt b/ext/session/tests/session_set_cookie_params_variation1.phpt index 02b901f3cf..93ac056d89 100644 --- a/ext/session/tests/session_set_cookie_params_variation1.phpt +++ b/ext/session/tests/session_set_cookie_params_variation1.phpt @@ -20,11 +20,13 @@ echo "*** Testing session_set_cookie_params() : variation ***\n"; var_dump(ini_get("session.cookie_lifetime")); var_dump(session_set_cookie_params(3600)); var_dump(ini_get("session.cookie_lifetime")); + var_dump(session_start()); var_dump(ini_get("session.cookie_lifetime")); var_dump(session_set_cookie_params(1800)); var_dump(ini_get("session.cookie_lifetime")); var_dump(session_destroy()); + var_dump(ini_get("session.cookie_lifetime")); var_dump(session_set_cookie_params(1234567890)); var_dump(ini_get("session.cookie_lifetime")); @@ -35,15 +37,16 @@ ob_end_flush(); --EXPECTF-- *** Testing session_set_cookie_params() : variation *** string(4) "3600" -NULL +bool(true) +string(4) "3600" +bool(true) +string(4) "3600" + +Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line 19 +bool(false) string(4) "3600" bool(true) string(4) "3600" -NULL -string(4) "1800" bool(true) -string(4) "1800" -NULL string(10) "1234567890" Done - |