summaryrefslogtreecommitdiff
path: root/ext/session/tests/017.phpt
blob: dbe53f5698f9bbaff394e902c71f9782c628037c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
setting $_SESSION before session_start() should not cause segfault
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.use_cookies=0
session.cache_limiter=
session.serialize_handler=php
session.save_handler=files
--FILE--
<?php

error_reporting(E_ALL);

class Kill {
	function Kill() {
		global $HTTP_SESSION_VARS;
		session_start();
	}
}
$k = new Kill();

print "I live\n";
?>
--EXPECT--
I live