xref: /PHP-7.4/ext/session/tests/012.phpt (revision 9497ba9d)
1--TEST--
2registering $_SESSION should not segfault
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.use_cookies=0
7session.cache_limiter=
8register_globals=1
9session.bug_compat_42=1
10session.bug_compat_warn=0
11session.serialize_handler=php
12--FILE--
13<?php
14error_reporting(E_ALL);
15
16### Absurd example, value of $_SESSION does not matter
17
18session_id("abtest");
19session_start();
20session_register("_SESSION");
21$_SESSION = "kk";
22
23session_write_close();
24
25### Restart to test for $_SESSION brokenness
26
27session_start();
28$_SESSION = "kk";
29session_destroy();
30
31print "I live\n";
32?>
33--EXPECT--
34I live
35