File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / session / tests / bug26862.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:42 2012 UTC (12 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, HEAD
php 5.4.3+patches

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>