From:             rix0rrr at gmail dot com
Operating system: Debian Linux
PHP version:      5.2.6
PHP Bug Type:     Session related
Bug description:  PHP doesn't decode cookies anymore when POST body grows large

Description:
------------
When the body of a POST request grows too large, PHP stops decoding 
the passed-in cookies properly. Usually this results in a session 
that is dropped (the user being logged out, etc.)

Reproduce code:
---------------
<?
  session_start();

  $FIELDS = 200;
  ?>

  PHP Version: <b><?= phpversion() ?></b><br>
  Cookies: <b><?  print_r($_COOKIE);l ?></b><br>
  Session ID: <b><?= session_id() ?></b><br>

  <form method="post">
  <input type="submit" value="Send">
  <? for ($i = 0; $i < $FIELDS; $i++): ?>
      <input type="text" name="field[$i]" value="<?= md5(microtime())
?>">
  <? endfor ?>
  </form>



Expected result:
----------------
Session id does not change between posts, cookies are displayed.





Actual result:
--------------
Depending on the setting of $FIELDS, PHP does or does not drop the 
cookies and therefore the session.

On my setup, setting $FIELDS to 100 works fine and the session is 
maintained, setting $FIELDS to 200 exhibits the behaviour mentioned.

-- 
Edit bug report at http://bugs.php.net/?id=46547&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46547&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46547&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46547&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46547&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46547&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46547&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46547&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46547&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46547&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46547&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46547&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46547&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46547&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46547&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46547&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46547&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46547&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46547&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46547&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46547&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46547&r=mysqlcfg

Reply via email to