Annotation of embedaddon/php/ext/session/tests/session_start_variation4.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: $_SESSION['blah'] = 'foo';
        !            19: var_dump($_SESSION);
        !            20: session_start();
        !            21: var_dump($_SESSION);
        !            22: 
        !            23: session_destroy();
        !            24: echo "Done";
        !            25: ob_end_flush();
        !            26: 
        !            27: ?>
        !            28: --EXPECTF--
        !            29: *** Testing session_start() : variation ***
        !            30: array(1) {
        !            31:   ["blah"]=>
        !            32:   string(3) "foo"
        !            33: }
        !            34: array(0) {
        !            35: }
        !            36: Done
        !            37: 

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