bug74833.phpt 386 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #74833 Session module number is uninitialized when SID is reset
  3. --EXTENSIONS--
  4. session
  5. --SKIPIF--
  6. <?php include('skipif.inc'); ?>
  7. --FILE--
  8. <?php
  9. ob_start();
  10. session_start();
  11. session_regenerate_id();
  12. $c = get_defined_constants(true);
  13. /* Ensure the SID constant has correct module number. */
  14. var_dump(isset($c['session']['SID']));
  15. ob_end_flush();
  16. ?>
  17. --EXPECT--
  18. bool(true)