php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24212 HTTP_RAW_POST_DATA contains a "doubled" contents
Submitted: 2003-06-16 17:50 UTC Modified: 2003-06-26 18:21 UTC
From: bugs at 50km dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.3.2 OS: linux redhat 8
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-06-16 17:50 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-17 05:42 UTC] moriyoshi@php.net
Try the solution mentioned in bug #18648


 [2003-06-26 18:21 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 22:01:32 2024 UTC