1--TEST--
2Bug #44394 (Last two bytes missing from output) with session.use_trans_id
3--EXTENSIONS--
4session
5--INI--
6session.name=PHPSESSID
7session.use_only_cookies=0
8session.use_trans_sid=1
9session.trans_sid_tags="a=href,area=href,frame=src,form="
10url_rewriter.tags="a=href,area=href,frame=src,form="
11--FILE--
12<?php
13
14session_save_path(__DIR__);
15session_start();
16
17ob_start();
18
19$string = "<a href='a?q=1'>asd</a>";
20
21output_add_rewrite_var('a', 'b');
22
23echo $string;
24
25ob_flush();
26
27ob_end_clean();
28
29?>
30--CLEAN--
31<?php
32foreach (glob(__DIR__ . '/sess_*') as $filename) {
33  unlink($filename);
34}
35?>
36--EXPECTF--
37Deprecated: PHP Startup: Disabling session.use_only_cookies INI setting is deprecated in Unknown on line 0
38
39Deprecated: PHP Startup: Enabling session.use_trans_sid INI setting is deprecated in Unknown on line 0
40<a href='a?q=1&a=b&PHPSESSID=%s'>asd</a>
41