xref: /PHP-8.4/ext/session/tests/bug73273.phpt (revision b5a14e6c)
1--TEST--
2Bug #73273: session_unset() empties values from all variables in which is $_session stored
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9session_start();
10$_SESSION['test'] = true;
11$var = $_SESSION;
12session_unset();
13var_dump($var);
14?>
15--EXPECT--
16array(1) {
17  ["test"]=>
18  bool(true)
19}
20