bug68063.phpt 561 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Bug #68063 (Empty session IDs do still start sessions)
  3. --EXTENSIONS--
  4. session
  5. --SKIPIF--
  6. <?php include('skipif.inc'); ?>
  7. --INI--
  8. session.use_strict_mode=0
  9. session.sid_length=40
  10. session.sid_bits_per_character=4
  11. --FILE--
  12. <?php
  13. // Empty session ID may happen by browser bugs
  14. // Could also be set with a cookie like "PHPSESSID=; path=/"
  15. session_id('');
  16. // Start the session with empty string should result in new session ID
  17. var_dump(session_start());
  18. // Returns newly created session ID
  19. var_dump(session_id());
  20. ?>
  21. --EXPECTF--
  22. bool(true)
  23. string(40) "%s"