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

1.1       misho       1: --TEST--
                      2: Test session_save_path() function : basic functionality
                      3: --INI--
                      4: session.gc_probability=0
                      5: session.save_path=
                      6: session.name=PHPSESSID
                      7: --SKIPIF--
                      8: <?php include('skipif.inc'); ?>
                      9: --FILE--
                     10: <?php
                     11: 
                     12: ob_start();
                     13: 
                     14: /* 
                     15:  * Prototype : string session_save_path([string $path])
                     16:  * Description : Get and/or set the current session save path
                     17:  * Source code : ext/session/session.c 
                     18:  */
                     19: 
                     20: echo "*** Testing session_save_path() : error functionality ***\n";
                     21: 
                     22: $directory = dirname(__FILE__);
                     23: var_dump(session_save_path());
                     24: var_dump(session_save_path($directory));
                     25: var_dump(session_save_path());
                     26: 
                     27: echo "Done";
                     28: ob_end_flush();
                     29: ?>
                     30: --EXPECTF--
                     31: *** Testing session_save_path() : error functionality ***
                     32: string(0) ""
                     33: string(0) ""
                     34: string(%d) "%s"
                     35: Done
                     36: 

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