Annotation of embedaddon/php/ext/session/tests/session_encode_variation2.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test session_encode() 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 : string session_encode(void)
                     14:  * Description : Encodes the current session data as a string
                     15:  * Source code : ext/session/session.c 
                     16:  */
                     17: 
                     18: echo "*** Testing session_encode() : variation ***\n";
                     19: 
                     20: var_dump(session_encode());
                     21: var_dump(session_destroy());
                     22: var_dump(session_encode());
                     23: 
                     24: echo "Done";
                     25: ob_end_flush();
                     26: ?>
                     27: --EXPECTF--
                     28: *** Testing session_encode() : variation ***
                     29: bool(false)
                     30: bool(true)
                     31: 
                     32: Warning: session_encode(): Cannot encode non-existent session in %s on line %d
                     33: bool(false)
                     34: Done

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