diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2010-04-21 01:27:22 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2010-04-21 01:27:22 +0000 |
commit | febee112850af0e56a57e2b38c9043c07dc99465 (patch) | |
tree | 42888ff0eb0f99d65dddeea4b1b0f5e161906ee0 /ext/session/tests/012.phpt | |
parent | bae9248602dc16b90db44473c903fbf539793aa7 (diff) | |
download | php-git-febee112850af0e56a57e2b38c9043c07dc99465.tar.gz |
Removed register_globals
Diffstat (limited to 'ext/session/tests/012.phpt')
-rw-r--r-- | ext/session/tests/012.phpt | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/session/tests/012.phpt b/ext/session/tests/012.phpt index 32aeb29c11..4746b85be0 100644 --- a/ext/session/tests/012.phpt +++ b/ext/session/tests/012.phpt @@ -5,7 +5,6 @@ registering $_SESSION should not segfault --INI-- session.use_cookies=0 session.cache_limiter= -register_globals=1 session.bug_compat_42=1 session.bug_compat_warn=0 session.serialize_handler=php @@ -18,7 +17,7 @@ error_reporting(E_ALL); session_id("abtest"); session_start(); -session_register("_SESSION"); +$_SESSION["_SESSION"] = Array(); $_SESSION = "kk"; session_write_close(); @@ -31,8 +30,5 @@ session_destroy(); print "I live\n"; ?> ---EXPECTF-- -Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0 - -Deprecated: Function session_register() is deprecated in %s on line %d +--EXPECT-- I live |