From:             cristea at pntcd dot ro
Operating system: any
PHP version:      4CVS-2003-08-29 (stable)
PHP Bug Type:     Session related
Bug description:  Crash when session.serialize_handler=wddx & session, post, get vars

Description:
------------
Apache will crash session.serialize_handler is set to wddx and when a
$_SESSION var have the same name as a $_POST (or $_GET) var.

Try this code:
File w1.php
-----------
<?php
ini_set('session.serialize_handler', 'wddx');
session_start();
$_SESSION['a'] = 'test';
echo <<< EOS
<form action="w2.php" method="post">
<input type="text" name="a" value="">
<input type="submit">
</form>
EOS;
?>

File w2.php
-----------
<?php
ini_set('session.serialize_handler', 'wddx');
session_start();
print_r($_SESSION);
echo "<hr>";
print_r($_POST);
?>


-- 
Edit bug report at http://bugs.php.net/?id=25307&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25307&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25307&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25307&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25307&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25307&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25307&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25307&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25307&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25307&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25307&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25307&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25307&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25307&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25307&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25307&r=gnused

Reply via email to