--TEST--
Test session and output_add_rewrite_var() URL-Rewriting independently
--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', 1);
ini_set('session.use_cookies', 1);
ini_set('session.use_strict_mode', 1);
ini_set('session.use_trans_sid', 0);
output_add_rewrite_var('', '');
echo "URL-Rewriting with output_add_rewrite_var() without transparent session id support\n";
echo $testTags;
ob_end_flush();
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 "\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
URL-Rewriting with output_add_rewrite_var() without transparent session id support
Deprecated: ini_set(): Disabling session.use_only_cookies INI setting is deprecated in %s on line 60
Deprecated: ini_set(): Enabling session.use_trans_sid INI setting is deprecated in %s on line 63
URL-Rewriting with transparent session id support without output_add_rewrite_var()