#36328 [NEW]: Random vhosts and .htaccess ini propagation
From: technophreak at gammae dot com
Operating system: Fedora Core 4
PHP version: 5.1.2
PHP Bug Type: Apache2 related
Bug description: Random vhosts and .htaccess ini propagation
Description:
------------
Problem is similar to BUG #25753
I am running Apache 2.0.55
I have seen this bug with PHP 5.0.5 also.
Some configuration gets leaked into random vhosts.
Reproduce code:
---------------
Let's have 3 different web sites using 3 vhosts.
One of those vhost, lets call it vhost A, I set a .htaccess file into the
document_root folder:
php_flag session.use_trans_sid on
php_flag session.use_cookies off
-
If I load a page wich has a session ID already set in the cookies in Vhost
B or C, the session ID will be changed as if I would load the page with no
cookie.
Here is a really simple code: <? print session_id(); ?>
Note: This happens maybe 1 time on 50 so you have to refresh the page a
lot of times.
Expected result:
----------------
Should print ALWAYS the same session ID as long as the session doesnt
expire.
Actual result:
--------------
Sometimes, the session ID changes because session does not use cookies
because the VHOST A .htaccess leaked to VHOST B.
--
Edit bug report at http://bugs.php.net/?id=36328&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36328&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36328&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36328&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36328&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36328&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36328&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36328&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36328&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36328&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36328&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36328&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36328&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36328&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36328&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36328&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36328&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36328&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36328&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36328&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36328&r=mysqlcfg
Thread (6 messages)
- technophreak at gammae dot com