summaryrefslogtreecommitdiff
path: root/ext/session/tests/017.phpt
blob: 957fcb2e452f5fc6c7f217066c717b848aa5322c (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 __construct() {
        global $HTTP_SESSION_VARS;
        session_start();
    }
}
$k = new Kill();

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