Annotation of embedaddon/php/ext/session/tests/session_start_variation3.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test session_start() function : variation
! 3: --SKIPIF--
! 4: <?php include('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: ob_start();
! 9:
! 10: /*
! 11: * Prototype : bool session_start(void)
! 12: * Description : Initialize session data
! 13: * Source code : ext/session/session.c
! 14: */
! 15:
! 16: echo "*** Testing session_start() : variation ***\n";
! 17:
! 18: var_dump(session_start());
! 19: var_dump(session_write_close());
! 20: var_dump(session_start());
! 21: var_dump(session_write_close());
! 22: var_dump(session_start());
! 23: var_dump(session_write_close());
! 24: var_dump(session_start());
! 25: var_dump(session_write_close());
! 26: var_dump(session_start());
! 27: var_dump(session_write_close());
! 28: var_dump(session_destroy());
! 29:
! 30: echo "Done";
! 31: ob_end_flush();
! 32: ?>
! 33: --EXPECTF--
! 34: *** Testing session_start() : variation ***
! 35: bool(true)
! 36: NULL
! 37: bool(true)
! 38: NULL
! 39: bool(true)
! 40: NULL
! 41: bool(true)
! 42: NULL
! 43: bool(true)
! 44: NULL
! 45:
! 46: Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
! 47: bool(false)
! 48: Done
! 49:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>