xref: /PHP-7.4/ext/session/tests/bug79413.phpt (revision b510250b)
1--TEST--
2Bug #79413 (session_create_id() fails for active sessions)
3--SKIPIF--
4<?php
5if (!extension_loaded('session')) die('skip session extension not available');
6?>
7--FILE--
8<?php
9session_start();
10$old = session_id();
11$new = session_create_id();
12var_dump($new !== $old);
13?>
14--EXPECT--
15bool(true)
16