Bug #51338 [Opn]: URL-Rewriter should not get enabled if use_only_cookies is set to 1

From: Date: Sat, 20 Mar 2010 15:45:07 +0000
Subject: Bug #51338 [Opn]: URL-Rewriter should not get enabled if use_only_cookies is set to 1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148790@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51338&edit=1

 ID:              51338
 User updated by: j dot jeising at gmail dot com
 Reported by:     j dot jeising at gmail dot com
 Summary:         URL-Rewriter should not get enabled if use_only_cookies
                  is set to 1
 Status:          Open
 Type:            Bug
 Package:         Session related
 PHP Version:     5.3SVN-2010-03-20 (SVN)

 New Comment:

Should be "ini_set('session.use_trans_sid', 1);" in the test script.


Previous Comments:
------------------------------------------------------------------------
[2010-03-20 16:43:08] j dot jeising at gmail dot com

Description:
------------
If session.use_only_cookies is enabled and session_use_trans_sid is
enabled PHP 
sets the URL-Rewriter as an ouput handler, although there is nothing to
rewrite.

The Problem is the apply_trans_sid variable in session.c, which is only
set to 
zero if a cookie is found. I wrote a small patch which should fix it but
somebody 
with more insight should have a look.

Test script:
---------------
<?php

ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid', 0);

session_start();

print_r(ob_list_handlers());
	
?>

Expected result:
----------------
Array
(
    [0] => default output handler
)


Actual result:
--------------
Array
(
    [0] => URL-Rewriter
)


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51338&edit=1


Thread (3 messages)

« previous php.bugs (#148790) next »