1--TEST-- 2setting $_SESSION before session_start() should not cause segfault 3--EXTENSIONS-- 4session 5--SKIPIF-- 6<?php include('skipif.inc'); ?> 7--INI-- 8session.use_cookies=0 9session.cache_limiter= 10session.serialize_handler=php 11session.save_handler=files 12--FILE-- 13<?php 14 15error_reporting(E_ALL); 16 17class Kill { 18 function __construct() { 19 global $HTTP_SESSION_VARS; 20 session_start(); 21 } 22} 23$k = new Kill(); 24 25print "I live\n"; 26?> 27--EXPECT-- 28I live 29