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