File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
session /
tests /
014.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:42 2012 UTC (12 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
1: --TEST--
2: a script should not be able to modify session.use_trans_sid
3: --SKIPIF--
4: <?php include('skipif.inc'); ?>
5: --INI--
6: session.use_trans_sid=0
7: session.use_cookies=0
8: session.cache_limiter=
9: session.name=PHPSESSID
10: session.serialize_handler=php
11: session.save_handler=files
12: --FILE--
13: <?php
14: error_reporting(E_ALL);
15:
16: session_id("abtest");
17: session_start();
18:
19: ?>
20: <a href="/link">
21: <?php
22: ini_set("session.use_trans_sid","1");
23: ?>
24: <a href="/link">
25: <?php
26: ini_set("session.use_trans_sid","0");
27: ?>
28: <a href="/link">
29: <?php
30: session_destroy();
31: ?>
32: --EXPECTF--
33: <a href="/link">
34:
35: Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in %s on line %d
36: <a href="/link">
37:
38: Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in %s on line %d
39: <a href="/link">
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>