From: Operating system: PHP version: 5.3SVN-2010-03-20 (SVN) Package: Session related Bug Type: Bug Bug description:URL-Rewriter should not get enabled if use_only_cookies is set to 1
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 bug report at http://bugs.php.net/bug.php?id=51338&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51338&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51338&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51338&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51338&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=51338&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51338&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=51338&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=51338&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=51338&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=51338&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=51338&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=51338&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=51338&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51338&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51338&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51338&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=51338&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=51338&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=51338&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=51338&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=51338&r=mysqlcfg
