We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e1ac6 commit dba3e4cCopy full SHA for dba3e4c
ext/session/tests/012.phpt
@@ -0,0 +1,33 @@
1
+--TEST--
2
+Registering _SESSION should not segfault.
3
+--SKIPIF--
4
+<?php include('skipif.inc'); ?>
5
+--INI--
6
+session.use_cookies=0
7
+session.cache_limiter=
8
+register_globals=1
9
+session.bug_compat_42=1
10
+session.bug_compat_warn=0
11
+--FILE--
12
+<?php
13
+error_reporting(E_ALL & ~E_NOTICE);
14
+
15
+### Absurd example, value of $_SESSION does not matter
16
17
+session_id("abtest");
18
+session_start();
19
+session_register("_SESSION");
20
+$_SESSION = "kk";
21
22
+session_write_close();
23
24
+### Restart to test for $_SESSION brokenness
25
26
27
28
+session_destroy();
29
30
+print "I live\n";
31
+?>
32
+--EXPECT--
33
+I live
0 commit comments