File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / session / tests / session_commit_variation2.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:01 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    1: --TEST--
    2: Test session_commit() function : variation
    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() : variation ***\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_commit());
   25: var_dump($_SESSION);
   26: var_dump(session_start());
   27: var_dump($_SESSION);
   28: var_dump(session_commit());
   29: var_dump($_SESSION);
   30: var_dump(session_start());
   31: var_dump(session_destroy());
   32: 
   33: echo "Done";
   34: ob_end_flush();
   35: ?>
   36: --EXPECTF--
   37: *** Testing session_commit() : variation ***
   38: bool(true)
   39: array(0) {
   40: }
   41: NULL
   42: array(0) {
   43: }
   44: bool(true)
   45: array(0) {
   46: }
   47: NULL
   48: array(0) {
   49: }
   50: bool(true)
   51: array(0) {
   52: }
   53: NULL
   54: array(0) {
   55: }
   56: bool(true)
   57: bool(true)
   58: Done
   59: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>