blob: c7454b8dbc66aa7a99dedd3ed28861339b14377c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--TEST--
unset() CV 6 (indirect unset() of global variable in session_unset())
--SKIPIF--
<?php include('../../ext/session/tests/skipif.inc'); ?>
--INI--
register_globals=1
--FILE--
<?php
$x = "1\n";
session_start();
echo $x;
session_register('x');
$_SESSION['x'] = "2\n";
echo $x;
session_unset();
echo $x;
echo "ok\n";
?>
--EXPECTF--
1
2
Notice: Undefined variable: x in %sunset_cv06.php on line %d
ok
|