1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/session/tests/017.phpt
George Peter Banyard 386892f1fe Restructure ext-session tests
And small improvements to some
2022-10-22 12:47:34 +01:00

29 lines
449 B
PHP

--TEST--
setting $_SESSION before session_start() should not cause segfault
--EXTENSIONS--
session
--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() {
$_SESSION = [];
session_start();
}
}
$k = new Kill();
print "I live\n";
?>
--EXPECT--
I live