mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
8deefa8780
# Trunk patch will follow shortly
33 lines
555 B
PHP
33 lines
555 B
PHP
--TEST--
|
|
registering $_SESSION should not 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);
|
|
|
|
### 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
|