|
Posted by Tom Harrington on 05/15/07 17:35
In article <f8-dnRyk2eoXRtTbnZ2dnUVZ_vninZ2d@comcast.com>,
Jerry Stuckle <jstucklex@attglobal.net> wrote:
> Tom Harrington wrote:
> > My web host updated yesterday from PHP 5.1.1 to 5.2.2, and one of my
> > scripts immediately broke, although the 5.2.2 release notes don't seem
> > to indicate I should have a problem.
> >
> > The script relied on having $HTTP_RAW_POST_DATA set. Starting yesterday
> > it's always an empty string.
> >
> > I guessed that my web host had changed the setting of the
> > always_populate_raw_post_data flag. However they assure me that their
> > php.ini did not change with the update.
> >
> > What would have caused this change? I've been using the script for
> > months without trouble, so having it die on the same day as the 5.2.2
> > update doesn't seem like it could be a coincidence.
> >
> > I've worked around the problem by using
> > file_get_contents("php://input"), but I'd really like to understand why
> > my script suddenly broke with this udpate.
> >
>
> Tom,
>
> Perhaps the upgrade replaced their php.ini file. What does phpinfo()
> show for "always_populate_raw_post_data"?
phpinfo() shows that it's off.
However the php.ini file on the server was last edited in May 2006,
which has me wondering if this is some kind of undocumented change from
5.1.1 to 5.2.2. If it was off before yesterday then $HTTP_RAW_POST_DATA
shouldn't have ever worked for me.
The docs for always_populate_raw_post_data say that it defaults to
"off", and php.ini isn't turning it on. Maybe it was accidentally
defaulting to "on" in 5.1.1 and 5.2.2 fixed this? Still there's nothing
in the changelogs to indicate this.
--
Tom "Tom" Harrington
MondoMouse makes your mouse mightier
See http://www.atomicbird.com/mondomouse/
[Back to original message]
|