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

1.1     ! misho       1: --TEST--
        !             2: Test session_module_name() function : variation
        !             3: --SKIPIF--
        !             4: <?php include('skipif.inc'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8: ob_start();
        !             9: 
        !            10: /* 
        !            11:  * Prototype : string session_module_name([string $module])
        !            12:  * Description : Get and/or set the current session module
        !            13:  * Source code : ext/session/session.c 
        !            14:  */
        !            15: 
        !            16: echo "*** Testing session_module_name() : variation ***\n";
        !            17: 
        !            18: function open($save_path, $session_name) { }
        !            19: function close() { }
        !            20: function read($id) { }
        !            21: function write($id, $session_data) { }
        !            22: function destroy($id) { }
        !            23: function gc($maxlifetime) { }
        !            24: 
        !            25: var_dump(session_module_name("files"));
        !            26: session_set_save_handler("open", "close", "read", "write", "destroy", "gc");
        !            27: var_dump(session_module_name());
        !            28: 
        !            29: ob_end_flush();
        !            30: ?>
        !            31: --EXPECTF--
        !            32: *** Testing session_module_name() : variation ***
        !            33: string(%d) "%s"
        !            34: string(4) "user"

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