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

1.1       misho       1: --TEST--
                      2: Test session_id() function : error functionality
                      3: --SKIPIF--
                      4: <?php include('skipif.inc'); ?>
                      5: --FILE--
                      6: <?php
                      7: 
                      8: ob_start();
                      9: 
                     10: /* 
                     11:  * Prototype : string session_id([string $id])
                     12:  * Description : Get and/or set the current session id
                     13:  * Source code : ext/session/session.c 
                     14:  */
                     15: 
                     16: echo "*** Testing session_id() : error functionality ***\n";
                     17: 
                     18: var_dump(session_id());
                     19: var_dump(session_start());
                     20: var_dump(session_id("test"));
                     21: var_dump(session_id());
                     22: var_dump(session_id("1234567890"));
                     23: var_dump(session_id());
                     24: var_dump(session_destroy());
                     25: var_dump(session_id());
                     26: 
                     27: echo "Done";
                     28: ob_end_flush();
                     29: ?>
                     30: --EXPECTF--
                     31: *** Testing session_id() : error functionality ***
                     32: string(0) ""
                     33: bool(true)
                     34: string(%d) "%s"
                     35: string(4) "test"
                     36: string(4) "test"
                     37: string(10) "1234567890"
                     38: bool(true)
                     39: string(0) ""
                     40: Done
                     41: 

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