xref: /PHP-7.1/Zend/tests/unset_cv06.phpt (revision 8deefa87)
1--TEST--
2unset() CV 6 (indirect unset() of global variable in session_unset())
3--SKIPIF--
4<?php include(dirname(__FILE__).'/../../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
21Notice: Undefined index: x in %sunset_cv06.php on line %d
22ok
23