Annotation of embedaddon/php/ext/session/tests/session_cache_expire_variation3.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test session_cache_expire() function : variation
! 3: --SKIPIF--
! 4: <?php include('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: ob_start();
! 9:
! 10: /*
! 11: * Prototype : int session_cache_expire([int $new_cache_expire])
! 12: * Description : Return current cache expire
! 13: * Source code : ext/session/session.c
! 14: */
! 15:
! 16: echo "*** Testing session_cache_expire() : variation ***\n";
! 17:
! 18: var_dump(ini_get("session.cache_expire"));
! 19: var_dump(session_cache_expire());
! 20: var_dump(ini_get("session.cache_expire"));
! 21: var_dump(session_cache_expire(1234567890));
! 22: var_dump(ini_get("session.cache_expire"));
! 23: var_dump(session_start());
! 24: var_dump(session_cache_expire());
! 25: var_dump(ini_get("session.cache_expire"));
! 26: var_dump(session_destroy());
! 27: var_dump(session_cache_expire());
! 28: var_dump(ini_get("session.cache_expire"));
! 29:
! 30: echo "Done";
! 31: ob_end_flush();
! 32: ?>
! 33: --EXPECTF--
! 34: *** Testing session_cache_expire() : variation ***
! 35: string(3) "180"
! 36: int(180)
! 37: string(3) "180"
! 38: int(180)
! 39: string(10) "1234567890"
! 40: bool(true)
! 41: int(1234567890)
! 42: string(10) "1234567890"
! 43: bool(true)
! 44: int(1234567890)
! 45: string(10) "1234567890"
! 46: Done
! 47:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>