xref: /PHP-8.4/Zend/tests/unset_cv06.phpt (revision acb78035)
1--TEST--
2unset() CV 6 (indirect unset() of global variable in session_unset())
3--EXTENSIONS--
4session
5--INI--
6session.auto_start=0
7session.save_handler=files
8--FILE--
9<?php
10session_start();
11$_SESSION['x'] = "1\n";
12echo $_SESSION['x'];
13
14session_unset();
15echo $_SESSION['x'];
16echo "ok\n";
17?>
18--EXPECTF--
191
20
21Warning: Undefined array key "x" in %s on line %d
22ok
23