php-src/ext/session/tests/017.phpt
2015-03-31 17:55:27 +02:00

27 lines
419 B
PHP

--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