1--TEST-- 2Test session_set_cookie_params() function : variation 3--INI-- 4session.cookie_domain=foo 5--EXTENSIONS-- 6session 7--SKIPIF-- 8<?php include('skipif.inc'); ?> 9--FILE-- 10<?php 11 12ob_start(); 13 14echo "*** Testing session_set_cookie_params() : variation ***\n"; 15 16var_dump(ini_get("session.cookie_domain")); 17var_dump(session_set_cookie_params(3600, "/path", "blah")); 18var_dump(ini_get("session.cookie_domain")); 19var_dump(session_start()); 20var_dump(ini_get("session.cookie_domain")); 21var_dump(session_set_cookie_params(3600, "/path", "guff")); 22var_dump(ini_get("session.cookie_domain")); 23var_dump(session_destroy()); 24var_dump(ini_get("session.cookie_domain")); 25var_dump(session_set_cookie_params(3600, "/path", "foo")); 26var_dump(ini_get("session.cookie_domain")); 27 28echo "Done"; 29ob_end_flush(); 30?> 31--EXPECTF-- 32*** Testing session_set_cookie_params() : variation *** 33string(3) "foo" 34bool(true) 35string(4) "blah" 36bool(true) 37string(4) "blah" 38 39Warning: session_set_cookie_params(): Session cookie parameters cannot be changed when a session is active (started from %s on line %d) in %s on line %d 40bool(false) 41string(4) "blah" 42bool(true) 43string(4) "blah" 44bool(true) 45string(3) "foo" 46Done 47