mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
34 lines
581 B
PHP
34 lines
581 B
PHP
--TEST--
|
|
registering $_SESSION should not segfault
|
|
--SKIPIF--
|
|
<?php include('skipif.inc'); ?>
|
|
--INI--
|
|
session.use_cookies=0
|
|
session.use_strict_mode=0
|
|
session.cache_limiter=
|
|
session.serialize_handler=php
|
|
session.save_handler=files
|
|
--FILE--
|
|
<?php
|
|
error_reporting(E_ALL);
|
|
|
|
### Absurd example, value of $_SESSION does not matter
|
|
|
|
session_id("abtest");
|
|
session_start();
|
|
$_SESSION["_SESSION"] = Array();
|
|
$_SESSION = "kk";
|
|
|
|
session_write_close();
|
|
|
|
### Restart to test for $_SESSION brokenness
|
|
|
|
session_start();
|
|
$_SESSION = "kk";
|
|
session_destroy();
|
|
|
|
print "I live\n";
|
|
?>
|
|
--EXPECT--
|
|
I live
|