# RAW_POST_DATA in PHP 5.2.2RC2

- Thread: https://externals.io/message/29103
- Original archive: https://news-web.php.net/php.internals/29103
- Started by Dirk Haun on 2007-04-29T21:29:58+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #29103 — Dirk Haun — 2007-04-29T21:29:58+00:00

URL: https://externals.io/message/29103#29103

I just spent about an hour debugging some XML-RPC communication only to
find that the problem was not in my code but in PHP 5.2.2RC2 apparently.

I'm using PEAR::XML_RPC (current version) which seems to rely on
$HTTP_RAW_POST_DATA. And even though I had always_populate_raw_post_data
= Off in my php.ini, that always worked fine with PHP 5.2.1.

With 5.2.2RC2, though, it doesn't seem to get the raw POST data any more:

---GOT---
HTTP/1.1 200 OK
Date: Sun, 29 Apr 2007 20:33:45 GMT
Server: Apache/1.3.37 (Unix) PHP/5.2.2RC2
X-Powered-By: PHP/5.2.2RC2
Content-Length: 486
Connection: close
Content-Type: text/xml; charset=UTF-8

<?xml version="1.0" encoding="UTF-8"?>
<!-- PEAR XML_RPC SERVER DEBUG INFO: 

vvv POST DATA RECEIVED BY SERVER vvv

^^^ END POST DATA ^^^

Switched back to PHP 5.2.1 (same machine, same php.ini, same PEAR
packages) and everything started working again.

I can dig deeper tomorrow, if required. Just wanted to give a heads-up.

bye, Dirk


-- 
http://www.geeklog.net/
http://geeklog.info/
