#24212 [Opn->Fbk]: HTTP_RAW_POST_DATA contains a "doubled" contents
| From: | moriyoshi@php.net | Date: | Tue, 17 Jun 2003 10:42:51 +0000 |
| Subject: | #24212 [Opn->Fbk]: HTTP_RAW_POST_DATA contains a "doubled" contents | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42116@lists.php.net to get a copy of this message | ||
ID: 24212
Updated by: moriyoshi@php.net
Reported By: bugs at 50km dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: linux redhat 8
PHP Version: 4.3.2
New Comment:
Try the solution mentioned in bug #18648
Previous Comments:
------------------------------------------------------------------------
[2003-06-16 17:50:47] bugs at 50km dot com
Description:
------------
$GLOBALS["HTTP_RAW_POST_DATA"] or HTTP_RAW_POST_DATA contains a
"doubled" contents. For example:
Client posts:
<?xml
version="1.0"?><methodCall><methodName>sayhello</methodName><params><param><value><string>Duff</string></value></param></params></methodCall>
Apears in $GLOBALS["HTTP_RAW_POST_DATA"] as:
<?xml
version="1.0"?><methodCall><methodName>sayhello</methodName><params><param><value><string>Duff</string></value></param></params></methodCall><?xml
version="1.0"?><methodCall><methodName>sayhello</methodName><params><param><value><string>Duff</string></value></param></params></methodCall>
Looks like it is concatenated to the variable twice.
I haven't played with this using binary data but it may explain what is
messing up file uploads for some people.
I know the recommended way is now to use php://input but a lot of older
code relies on this and it seems to clearly be a bug.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24212&edit=1