diff options
Diffstat (limited to 'ext/session/tests/017.phpt')
| -rw-r--r-- | ext/session/tests/017.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/session/tests/017.phpt b/ext/session/tests/017.phpt new file mode 100644 index 0000000..dbe53f5 --- /dev/null +++ b/ext/session/tests/017.phpt @@ -0,0 +1,26 @@ +--TEST-- +setting $_SESSION before session_start() should not cause 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); + +class Kill { + function Kill() { + global $HTTP_SESSION_VARS; + session_start(); + } +} +$k = new Kill(); + +print "I live\n"; +?> +--EXPECT-- +I live |
