Annotation of embedaddon/php/ext/standard/tests/general_functions/bug44394_2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #44394 (Last two bytes missing from output) with session.use_trans_id
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("session")) print "skip"; ?>
! 5: --INI--
! 6: session.name=PHPSESSID
! 7: session.use_only_cookies=0
! 8: --FILE--
! 9: <?php
! 10:
! 11: ini_set('session.use_trans_sid', 1);
! 12: session_save_path(__DIR__);
! 13: session_start();
! 14:
! 15: ob_start();
! 16:
! 17: $string = "<a href='a?q=1'>asd</a>";
! 18:
! 19: output_add_rewrite_var('a', 'b');
! 20:
! 21: echo $string;
! 22:
! 23: ob_flush();
! 24:
! 25: ob_end_clean();
! 26:
! 27: ?>
! 28: --CLEAN--
! 29: <?php
! 30: foreach (glob(__DIR__ . '/sess_*') as $filename) {
! 31: unlink($filename);
! 32: }
! 33: ?>
! 34: --EXPECTF--
! 35: <a href='a?q=1&PHPSESSID=%s&a=b'>asd</a>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>