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