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