cvs: php4 /ext/session/tests 017.phpt
| From: | Sascha Schumann | Date: | Thu, 03 Oct 2002 16:55:08 +0000 |
| Subject: | cvs: php4 /ext/session/tests 017.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14503@lists.php.net to get a copy of this message | ||
sas Thu Oct 3 12:55:08 2002 EDT
Added files:
/php4/ext/session/tests 017.phpt
Log:
code from ancient bug #5271
setting $_SESSION before session_start() should not cause segfault
Index: php4/ext/session/tests/017.phpt
+++ php4/ext/session/tests/017.phpt
--TEST--
setting $_SESSION before session_start() should not cause segfault
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.use_cookies=0
session.cache_limiter=
--FILE--
<?php
error_reporting(E_ALL);
class Kill {
function Kill() {
global $HTTP_SESSION_VARS;
session_start();
}
}
$k = new Kill();
print "I live\n";
?>
--EXPECT--
I live