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