#49975 [Opn->Bgs]: malformation of request data

From: Date: Fri, 23 Oct 2009 20:46:12 +0000
Subject: #49975 [Opn->Bgs]: malformation of request data
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143869@lists.php.net to get a copy of this message
ID: 49975 Updated by: sniper@php.net Reported By: e dot ehritt at web dot de -Status: Open +Status: Bogus Bug Type: *General Issues PHP Version: 5.3.1RC2 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. See bug #48597 Previous Comments: ------------------------------------------------------------------------ [2009-10-23 17:27:37] e dot ehritt at web dot de Description: ------------ It occurs in all current versions Incoming request data are malformed: POST / HTTP/1.1 Host: localhost Content-Type: application/x-www-form-urlencoded Content-Length: 17 a%5Bb%5Bc%5D%5D=d Reproduce code: --------------- <form action="s.php" method="post"> <p> <input name="a[b[c]]" type="text"/> <input type="submit"> </p> </form> ##################################################### <?php # s.php $a=array('a'=>array('b[c]'=>'d')); print_r($_POST); print_r($a); ?> Expected result: ---------------- Array ( [a] => Array ( [b[c]] => d ) ) Array ( [a] => Array ( [b[c]] => d ) ) Actual result: -------------- Array ( [a] => Array ( [b[c] => d ) ) Array ( [a] => Array ( [b[c]] => d ) ) So, I miss "]" in POST data. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49975&edit=1

« previous php.bugs (#143869) next »