Annotation of embedaddon/php/ext/session/tests/session_cache_limiter_variation3.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test session_cache_limiter() function : variation
! 3: --SKIPIF--
! 4: <?php include('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: ob_start();
! 9:
! 10: /*
! 11: * Prototype : string session_cache_limiter([string $cache_limiter])
! 12: * Description : Get and/or set the current cache limiter
! 13: * Source code : ext/session/session.c
! 14: */
! 15:
! 16: echo "*** Testing session_cache_limiter() : variation ***\n";
! 17:
! 18: var_dump(ini_get("session.cache_limiter"));
! 19: var_dump(session_start());
! 20: var_dump(ini_get("session.cache_limiter"));
! 21: var_dump(session_cache_limiter("public"));
! 22: var_dump(ini_get("session.cache_limiter"));
! 23: var_dump(session_destroy());
! 24: var_dump(ini_get("session.cache_limiter"));
! 25:
! 26: echo "Done";
! 27: ob_end_flush();
! 28: ?>
! 29: --EXPECTF--
! 30: *** Testing session_cache_limiter() : variation ***
! 31: string(7) "nocache"
! 32: bool(true)
! 33: string(7) "nocache"
! 34: string(7) "nocache"
! 35: string(6) "public"
! 36: bool(true)
! 37: string(6) "public"
! 38: Done
! 39:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>