For Programmers: Free Programming Magazines  


Home > Archive > PHP Questions and Answers > April 2007 > Re: [contact-us] PHP 5.2.2RC2 testing









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [contact-us] PHP 5.2.2RC2 testing
Dirk Haun

2007-04-30, 6:58 pm

Ilia,

>The final release candidate of PHP 5.2.2 was just released and can be
>downloaded from http://downloads.php.net/ilia/. This RC introduces a
>series of bug fixes to pre-existing issues with no significant
>regressions been identified since RC1, so we are planning to proceed
>with a final release within a w. Given that this is the case I
>would like to ask everyone to test out this RC against their code to
>ensure that no regressions were introduced. If you discover any new
>issues please let me know.


As already mentioned on php.internals[1]: I think there is a problem
with HTTP_RAW_POST_DATA.

On the receiving end of an XML-RPC call (using PEAR::XML_RPC), I have
this simple PHP script:

print_r(getallheaders());
echo $GLOBALS['HTTP_RAW_POST_DATA'] . "\n\n";

With PHP 5.2.2RC2, it prints out this:

--- snip ---
Array
(
[Content-Length] => 347
[Content-Type] => text/xml
[Host] => glog.bloghosting.de
[User-Agent] => PEAR XML_RPC
)
<br />
<b>Notice</b>: Undefined index: HTTP_RAW_POST_DATA in <b>/usr/local/
apache/vhost/glog/public_html/pingback.php</b> on line <b>5</b><br />
--- snip ---

PEAR::XML_RPC can't seem to get the POST data either.

With PHP 5.2.1 (same machine, same configuration, same PEAR packages) it
prints out the raw POST data as expected (disregard all URLs and
hostnames, please):

--- snip ---
Array
(
[Content-Length] => 347
[Content-Type] => text/xml
[Host] => glog.bloghosting.de
[User-Agent] => PEAR XML_RPC
)
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>pingback.ping</methodName>
<params>
<param>
<value><string>http://current.bloghosting.de/article.php/soc-text</
string></value>
</param>
<param>
<value><string>[url]http://glog.bloghosting.de/article.php/summer-of-[/url]
code-2007</string></value>
</param>
</params>
</methodCall>
--- snip ---

PEAR::XML_RPC works as expected, too. So to me this looks like a regression.

Let me know if you need any more information or if you want me to open a
bug report.

bye, Dirk

[1] <http://news.php.net/php.internals/29103>


--
[url]http://www.glog.net/[/url]
[url]http://glog.info/[/url]
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com