1--TEST-- 2Test session_destroy() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7 8ob_start(); 9 10/* 11 * Prototype : bool session_destroy(void) 12 * Description : Destroys all data registered to a session 13 * Source code : ext/session/session.c 14 */ 15 16echo "*** Testing session_destroy() : variation ***\n"; 17 18var_dump(session_start()); 19var_dump(session_destroy()); 20var_dump(session_destroy()); 21var_dump(session_destroy()); 22var_dump(session_destroy()); 23var_dump(session_destroy()); 24 25echo "Done"; 26ob_end_flush(); 27?> 28--EXPECTF-- 29*** Testing session_destroy() : variation *** 30bool(true) 31bool(true) 32 33Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d 34bool(false) 35 36Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d 37bool(false) 38 39Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d 40bool(false) 41 42Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d 43bool(false) 44Done 45