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