summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2010-04-21 01:27:22 (GMT)
committerKalle Sommer Nielsen <kalle@php.net>2010-04-21 01:27:22 (GMT)
commitfebee112850af0e56a57e2b38c9043c07dc99465 (patch)
tree42888ff0eb0f99d65dddeea4b1b0f5e161906ee0 /Zend
parentbae9248602dc16b90db44473c903fbf539793aa7 (diff)
downloadphp-febee112850af0e56a57e2b38c9043c07dc99465.tar.gz
Removed register_globals
Diffstat (limited to 'Zend')
-rw-r--r--Zend/tests/unset_cv06.phpt17
1 files changed, 5 insertions, 12 deletions
diff --git a/Zend/tests/unset_cv06.phpt b/Zend/tests/unset_cv06.phpt
index b1ef0cc..dd78815 100644
--- a/Zend/tests/unset_cv06.phpt
+++ b/Zend/tests/unset_cv06.phpt
@@ -3,27 +3,20 @@ unset() CV 6 (indirect unset() of global variable in session_unset())
--SKIPIF--
<?php include(dirname(__FILE__).'/../../ext/session/tests/skipif.inc'); ?>
--INI--
-register_globals=1
session.auto_start=0
session.save_handler=files
--FILE--
<?php
-$x = "1\n";
session_start();
-echo $x;
-session_register('x');
-$_SESSION['x'] = "2\n";
-echo $x;
+$_SESSION['x'] = "1\n";
+echo $_SESSION['x'];
+
session_unset();
-echo $x;
+echo $_SESSION['x'];
echo "ok\n";
?>
--EXPECTF--
-Warning: Directive 'register_globals' is deprecated in PHP %d.%d and greater in Unknown on line 0
1
-Deprecated: Function session_register() is deprecated in %s on line %d
-2
-
-Notice: Undefined variable: x in %sunset_cv06.php on line %d
+Notice: Undefined index: x in %sunset_cv06.php on line %d
ok