#24212 [NEW]: HTTP_RAW_POST_DATA contains a "doubled" contents
| From: | bugs at 50km dot com | Date: | Mon, 16 Jun 2003 22:50:47 +0000 |
| Subject: | #24212 [NEW]: HTTP_RAW_POST_DATA contains a "doubled" contents | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-42093@lists.php.net to get a copy of this message | ||
From: bugs at 50km dot com
Operating system: linux redhat 8
PHP version: 4.3.2
PHP Bug Type: Scripting Engine problem
Bug description: HTTP_RAW_POST_DATA contains a "doubled" contents
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 bug report at http://bugs.php.net/?id=24212&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24212&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24212&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24212&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24212&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24212&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24212&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24212&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24212&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24212&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24212&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24212&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24212&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24212&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24212&r=gnused