xref: /php-src/ext/session/tests/015.phpt (revision c5bce0d8)
1--TEST--
2use_trans_sid should not affect SID
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--INI--
8session.use_trans_sid=1
9session.use_cookies=0
10session.use_only_cookies=0
11session.use_strict_mode=0
12session.cache_limiter=
13arg_separator.output=&
14session.name=PHPSESSID
15session.serialize_handler=php
16session.save_handler=files
17--FILE--
18<?php
19error_reporting(E_ALL);
20
21session_id("test015");
22session_start();
23$sid = SID;
24?>
25<a href="/link?<?=$sid ?>">
26<?php
27session_destroy();
28?>
29--EXPECTF--
30Deprecated: PHP Startup: Disabling session.use_only_cookies INI setting is deprecated in Unknown on line 0
31
32Deprecated: PHP Startup: Enabling session.use_trans_sid INI setting is deprecated in Unknown on line 0
33
34Deprecated: Constant SID is deprecated in %s on line 6
35<a href="/link?PHPSESSID=test015&PHPSESSID=test015">
36