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