2004-10-05 06:53:39 +00:00
|
|
|
--TEST--
|
|
|
|
unset() CV 6 (indirect unset() of global variable in session_unset())
|
|
|
|
--SKIPIF--
|
2005-06-22 00:41:28 +00:00
|
|
|
<?php include(dirname(__FILE__).'/../../ext/session/tests/skipif.inc'); ?>
|
2004-10-05 13:21:06 +00:00
|
|
|
--INI--
|
|
|
|
register_globals=1
|
2005-07-08 07:57:47 +00:00
|
|
|
session.auto_start=0
|
|
|
|
session.save_handler=files
|
2004-10-05 06:53:39 +00:00
|
|
|
--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
|
|
|
|
|
2004-12-27 13:43:26 +00:00
|
|
|
Notice: Undefined variable: x in %sunset_cv06.php on line %d
|
2004-10-05 06:53:39 +00:00
|
|
|
ok
|