Annotation of embedaddon/php/ext/session/tests/session_set_save_handler_variation2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test session_set_save_handler() function : variation
! 3: --SKIPIF--
! 4: <?php include('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: ob_start();
! 9:
! 10: /*
! 11: * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
! 12: * Description : Sets user-level session storage functions
! 13: * Source code : ext/session/session.c
! 14: */
! 15:
! 16: echo "*** Testing session_set_save_handler() : variation ***\n";
! 17:
! 18: require_once "save_handler.inc";
! 19: $path = dirname(__FILE__);
! 20: session_save_path($path);
! 21: var_dump(session_start());
! 22: var_dump(session_set_save_handler("open", "close", "read", "write", "destroy", "gc"));
! 23: var_dump(session_destroy());
! 24:
! 25: ob_end_flush();
! 26: ?>
! 27: --EXPECTF--
! 28: *** Testing session_set_save_handler() : variation ***
! 29:
! 30: bool(true)
! 31: bool(false)
! 32: bool(true)
! 33:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>