]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Wed, 11 Feb 2004 17:00:49 +0000 (17:00 +0000)
committerSVN Migration <svn@php.net>
Wed, 11 Feb 2004 17:00:49 +0000 (17:00 +0000)
ext/session/tests/bug26862.phpt [new file with mode: 0644]

diff --git a/ext/session/tests/bug26862.phpt b/ext/session/tests/bug26862.phpt
new file mode 100644 (file)
index 0000000..f30a21d
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+Bug #26862 (ob_flush() before output_reset_rewrite_vars() results in data loss)
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--INI--
+register_globals=0
+html_errors=0
+--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>