session_cache_expire_basic.phpt 796 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. --TEST--
  2. Test session_cache_expire() function : basic functionality
  3. --SKIPIF--
  4. <?php include('skipif.inc'); ?>
  5. --FILE--
  6. <?php
  7. ob_start();
  8. /*
  9. * Prototype : int session_cache_expire([int $new_cache_expire])
  10. * Description : Return current cache expire
  11. * Source code : ext/session/session.c
  12. */
  13. echo "*** Testing session_cache_expire() : basic functionality ***\n";
  14. var_dump(session_cache_expire());
  15. var_dump(session_cache_expire(1234567890));
  16. var_dump(session_cache_expire(180));
  17. var_dump(session_start());
  18. var_dump(session_cache_expire());
  19. var_dump(session_destroy());
  20. var_dump(session_cache_expire());
  21. echo "Done";
  22. ob_end_flush();
  23. ?>
  24. --EXPECTF--
  25. *** Testing session_cache_expire() : basic functionality ***
  26. int(180)
  27. int(180)
  28. int(1234567890)
  29. bool(true)
  30. int(180)
  31. bool(true)
  32. int(180)
  33. Done