mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
27 lines
419 B
PHP
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
|