--TEST--
Test session URL-Rewriting with and without nested output_add_rewrite_var()
--EXTENSIONS--
session
--INI--
session.trans_sid_tags="a=href,area=href,frame=src,form="
url_rewriter.tags="a=href,area=href,frame=src,form="
--FILE--
TEST;
ob_start();
ini_set('session.trans_sid_hosts', 'session-trans-sid.com');
ini_set('url_rewriter.hosts', 'url-rewriter.com');
ini_set('session.use_only_cookies', 0);
ini_set('session.use_cookies', 0);
ini_set('session.use_strict_mode', 0);
ini_set('session.use_trans_sid', 1);
session_id('testid');
session_start();
echo "URL-Rewriting with transparent session id support without output_add_rewrite_var()\n";
echo $testTags;
ob_flush();
output_add_rewrite_var('', '');
echo "\nURL-Rewriting with transparent session id support and output_add_rewrite_var()\n";
echo $testTags;
ob_end_flush();
output_reset_rewrite_vars();
output_add_rewrite_var('', '');
echo "\nURL-Rewriting with transparent session id support without output_add_rewrite_var()\n";
echo $testTags;
--EXPECTF--
Deprecated: ini_set(): Usage of session.trans_sid_hosts INI setting is deprecated in %s on line 44
Deprecated: ini_set(): Disabling session.use_only_cookies INI setting is deprecated in %s on line 47
Deprecated: ini_set(): Enabling session.use_trans_sid INI setting is deprecated in %s on line 50
URL-Rewriting with transparent session id support without output_add_rewrite_var()
URL-Rewriting with transparent session id support and output_add_rewrite_var()
URL-Rewriting with transparent session id support without output_add_rewrite_var()