1--TEST-- 2Bug #44394 (Last two bytes missing from output) with session.use_trans_id 3--SKIPIF-- 4<?php if (!extension_loaded("session")) print "skip"; ?> 5--INI-- 6session.name=PHPSESSID 7session.use_only_cookies=0 8session.trans_sid_tags="a=href,area=href,frame=src,form=" 9url_rewriter.tags="a=href,area=href,frame=src,form=" 10--FILE-- 11<?php 12 13ini_set('session.use_trans_sid', 1); 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-- 37<a href='a?q=1&a=b&PHPSESSID=%s'>asd</a> 38