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/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to