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