summaryrefslogtreecommitdiff
path: root/Zend/tests/unset_cv06.phpt
blob: d4f38526582ecd39a8bbe1c6e463c6c817d65319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
unset() CV 6 (indirect unset() of global variable in session_unset())
--SKIPIF--
<?php include(__DIR__.'/../../ext/session/tests/skipif.inc'); ?>
--INI--
session.auto_start=0
session.save_handler=files
--FILE--
<?php
session_start();
$_SESSION['x'] = "1\n";
echo $_SESSION['x'];

session_unset();
echo $_SESSION['x'];
echo "ok\n";
?>
--EXPECTF--
1

Warning: Undefined array key "x" in %s on line %d
ok