1--TEST-- 2Bug #26862 (ob_flush() before output_reset_rewrite_vars() results in data loss) 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--INI-- 6html_errors=0 7session.use_trans_sid=0 8session.save_handler=files 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 13session_start(); 14output_add_rewrite_var('var', 'value'); 15 16echo '<a href="file.php">link</a>'; 17 18ob_flush(); 19 20output_reset_rewrite_vars(); 21echo '<a href="file.php">link</a>'; 22?> 23--EXPECT-- 24<a href="file.php?var=value">link</a><a href="file.php">link</a> 25