Annotation of embedaddon/php/ext/session/tests/session_commit_variation3.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test session_start() function : variation
        !             3: --SKIPIF--
        !             4: <?php include('skipif.inc'); ?>
        !             5: --INI--
        !             6: session.auto_start=1
        !             7: --FILE--
        !             8: <?php
        !             9: 
        !            10: ob_start();
        !            11: 
        !            12: /* 
        !            13:  * Prototype : bool session_commit(void)
        !            14:  * Description : Write session data and end session
        !            15:  * Source code : ext/session/session.c 
        !            16:  */
        !            17: 
        !            18: echo "*** Testing session_commit() : variation ***\n";
        !            19: 
        !            20: var_dump($_SESSION);
        !            21: var_dump(session_commit());
        !            22: var_dump($_SESSION);
        !            23: var_dump(session_start());
        !            24: var_dump(session_destroy());
        !            25: 
        !            26: echo "Done";
        !            27: ob_end_flush();
        !            28: ?>
        !            29: --EXPECTF--
        !            30: *** Testing session_commit() : variation ***
        !            31: array(0) {
        !            32: }
        !            33: NULL
        !            34: array(0) {
        !            35: }
        !            36: bool(true)
        !            37: bool(true)
        !            38: Done
        !            39: 

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