php-src/ext/session/tests/012.phpt
2010-08-11 21:12:18 +00:00

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