Annotation of embedaddon/php/ext/session/tests/session_commit_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test session_commit() function : basic functionality
! 3: --SKIPIF--
! 4: <?php include('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: ob_start();
! 9:
! 10: /*
! 11: * Prototype : bool session_commit(void)
! 12: * Description : Write session data and end session
! 13: * Source code : ext/session/session.c
! 14: */
! 15:
! 16: echo "*** Testing session_commit() : basic functionality ***\n";
! 17:
! 18: var_dump(session_start());
! 19: var_dump($_SESSION);
! 20: var_dump(session_commit());
! 21: var_dump($_SESSION);
! 22: var_dump(session_start());
! 23: var_dump($_SESSION);
! 24: var_dump(session_destroy());
! 25: var_dump($_SESSION);
! 26:
! 27: echo "Done";
! 28: ob_end_flush();
! 29: ?>
! 30: --EXPECTF--
! 31: *** Testing session_commit() : basic functionality ***
! 32: bool(true)
! 33: array(0) {
! 34: }
! 35: NULL
! 36: array(0) {
! 37: }
! 38: bool(true)
! 39: array(0) {
! 40: }
! 41: bool(true)
! 42: array(0) {
! 43: }
! 44: Done
! 45:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>