cvs: php4 /ext/session/tests 012.phpt
| From: | Sascha Schumann | Date: | Thu, 03 Oct 2002 15:48:18 +0000 |
| Subject: | cvs: php4 /ext/session/tests 012.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14496@lists.php.net to get a copy of this message | ||
sas Thu Oct 3 11:48:18 2002 EDT
Added files:
/php4/ext/session/tests 012.phpt
Log:
Registering _SESSION should not segfault.
Index: php4/ext/session/tests/012.phpt
+++ php4/ext/session/tests/012.phpt
--TEST--
Registering _SESSION should not segfault.
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.use_cookies=0
session.cache_limiter=
register_globals=1
session.bug_compat_42=1
session.bug_compat_warn=0
--FILE--
<?php
error_reporting(E_ALL & ~E_NOTICE);
### Absurd example, value of $_SESSION does not matter
session_id("abtest");
session_start();
session_register("_SESSION");
$_SESSION = "kk";
session_write_close();
### Restart to test for $_SESSION brokenness
session_start();
$_SESSION = "kk";
session_destroy();
print "I live\n";
?>
--EXPECT--
I live