[wp-trac] [WordPress Trac] #49810: Remove workaround for $HTTP_RAW_POST_DATA bug present in PHP < 5.2.2

WordPress Trac noreply at wordpress.org
Sat Apr 4 18:46:58 UTC 2020


#49810: Remove workaround for $HTTP_RAW_POST_DATA bug present in PHP < 5.2.2
-------------------------------------+-----------------------------
 Reporter:  skoskie                  |       Owner:  SergeyBiryukov
     Type:  enhancement              |      Status:  reviewing
 Priority:  normal                   |   Milestone:  5.5
Component:  XML-RPC                  |     Version:  trunk
 Severity:  trivial                  |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => reviewing
 * milestone:  Awaiting Review => 5.5


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the patch.

 As noted in the
 [https://www.php.net/manual/en/reserved.variables.httprawpostdata.php PHP
 manual], `$HTTP_RAW_POST_DATA` was deprecated in PHP 5.6.0, and removed as
 of PHP 7.0.0.

 The code relying on it should be updated to always use `php://input`
 instead.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49810#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list