xref: /php-src/ext/session/tests/bug26862.phpt (revision b5a14e6c)
1--TEST--
2Bug #26862 (ob_flush() before output_reset_rewrite_vars() results in data loss)
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--INI--
8html_errors=0
9session.use_trans_sid=0
10session.save_handler=files
11session.trans_sid_tags="a=href,area=href,frame=src,form="
12url_rewriter.tags="a=href,area=href,frame=src,form="
13--FILE--
14<?php
15session_start();
16output_add_rewrite_var('var', 'value');
17
18echo '<a href="file.php">link</a>';
19
20ob_flush();
21
22output_reset_rewrite_vars();
23echo '<a href="file.php">link</a>';
24?>
25--EXPECT--
26<a href="file.php?var=value">link</a><a href="file.php">link</a>
27