mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
25 lines
583 B
PHP
25 lines
583 B
PHP
--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
|
|
session.trans_sid_tags="a=href,area=href,frame=src,form="
|
|
url_rewriter.tags="a=href,area=href,frame=src,form="
|
|
--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>
|