xref: /PHP-5.3/ext/session/tests/014.phpt (revision 5ad03cd4)
1--TEST--
2a script should not be able to modify session.use_trans_sid
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.use_trans_sid=0
7session.use_cookies=0
8session.cache_limiter=
9register_globals=1
10session.bug_compat_42=1
11session.bug_compat_warn=0
12session.name=PHPSESSID
13session.serialize_handler=php
14session.save_handler=files
15--FILE--
16<?php
17error_reporting(E_ALL);
18
19session_id("abtest");
20session_start();
21
22?>
23<a href="/link">
24<?php
25ini_set("session.use_trans_sid","1");
26?>
27<a href="/link">
28<?php
29ini_set("session.use_trans_sid","0");
30?>
31<a href="/link">
32<?php
33session_destroy();
34?>
35--EXPECTF--
36Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
37<a href="/link">
38
39Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in %s on line %d
40<a href="/link">
41
42Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in %s on line %d
43<a href="/link">
44