Annotation of embedaddon/php/ext/session/tests/012.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: registering $_SESSION should not segfault
3: --SKIPIF--
4: <?php include('skipif.inc'); ?>
5: --INI--
6: session.use_cookies=0
7: session.cache_limiter=
8: register_globals=1
9: session.bug_compat_42=1
10: session.bug_compat_warn=0
11: session.serialize_handler=php
12: session.save_handler=files
13: --FILE--
14: <?php
15: error_reporting(E_ALL);
16:
17: ### Absurd example, value of $_SESSION does not matter
18:
19: session_id("abtest");
20: session_start();
21: session_register("_SESSION");
22: $_SESSION = "kk";
23:
24: session_write_close();
25:
26: ### Restart to test for $_SESSION brokenness
27:
28: session_start();
29: $_SESSION = "kk";
30: session_destroy();
31:
32: print "I live\n";
33: ?>
34: --EXPECTF--
35: Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
36:
37: Deprecated: Function session_register() is deprecated in %s on line %d
38: I live
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>