xref: /PHP-5.3/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--
6register_globals=1
7session.auto_start=0
8session.save_handler=files
9--FILE--
10<?php
11$x = "1\n";
12session_start();
13echo $x;
14session_register('x');
15$_SESSION['x'] = "2\n";
16echo $x;
17session_unset();
18echo $x;
19echo "ok\n";
20?>
21--EXPECTF--
22Deprecated: Directive 'register_globals' is deprecated in PHP %d.%d and greater in Unknown on line 0
231
24
25Deprecated: Function session_register() is deprecated in %s on line %d
262
27
28Notice: Undefined variable: x in %sunset_cv06.php on line %d
29ok
30