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