xref: /PHP-8.0/Zend/tests/unset_cv06.phpt (revision c48b745f)
1--TEST--
2unset() CV 6 (indirect unset() of global variable in session_unset())
3--SKIPIF--
4<?php include(__DIR__.'/../../ext/session/tests/skipif.inc'); ?>
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