1--TEST-- 2Test session_set_cookie_params() function : variation 3--INI-- 4session.cookie_httponly=TRUE 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_httponly")); 17var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE, FALSE)); 18var_dump(ini_get("session.cookie_httponly")); 19var_dump(session_start()); 20var_dump(ini_get("session.cookie_httponly")); 21var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE, TRUE)); 22var_dump(ini_get("session.cookie_httponly")); 23var_dump(session_destroy()); 24var_dump(ini_get("session.cookie_httponly")); 25var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE, FALSE)); 26var_dump(ini_get("session.cookie_httponly")); 27 28echo "Done"; 29ob_end_flush(); 30?> 31--EXPECTF-- 32*** Testing session_set_cookie_params() : variation *** 33string(1) "1" 34bool(true) 35string(1) "0" 36bool(true) 37string(1) "0" 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(1) "0" 42bool(true) 43string(1) "0" 44bool(true) 45string(1) "0" 46Done 47