diff options
Diffstat (limited to 'ext/session/tests/bug26862.phpt')
| -rw-r--r-- | ext/session/tests/bug26862.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/session/tests/bug26862.phpt b/ext/session/tests/bug26862.phpt new file mode 100644 index 0000000..7990f74 --- /dev/null +++ b/ext/session/tests/bug26862.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #26862 (ob_flush() before output_reset_rewrite_vars() results in data loss) +--SKIPIF-- +<?php include('skipif.inc'); ?> +--INI-- +html_errors=0 +session.use_trans_sid=0 +session.save_handler=files +--FILE-- +<?php +session_start(); +output_add_rewrite_var('var', 'value'); + +echo '<a href="file.php">link</a>'; + +ob_flush(); + +output_reset_rewrite_vars(); +echo '<a href="file.php">link</a>'; +?> +--EXPECT-- +<a href="file.php?var=value">link</a><a href="file.php">link</a> |
