1--TEST-- 2Test session_set_cookie_params() function : basic functionality 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7 8ob_start(); 9 10echo "*** Testing session_set_cookie_params() : basic functionality ***\n"; 11 12var_dump(session_set_cookie_params(3600)); 13var_dump(session_start()); 14var_dump(session_set_cookie_params(1800)); 15var_dump(session_destroy()); 16var_dump(session_set_cookie_params(1234567890)); 17 18echo "Done"; 19ob_end_flush(); 20?> 21--EXPECTF-- 22*** Testing session_set_cookie_params() : basic functionality *** 23bool(true) 24bool(true) 25 26Warning: session_set_cookie_params(): Session cookie parameters cannot be changed when a session is active in %s on line %d 27bool(false) 28bool(true) 29bool(true) 30Done 31