[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
Thu Jun 4 15:59:04 UTC 2020


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

Comment (by desrosj):

 The variable was deprecated in PHP 5.6 and removed from PHP in version
 7.0.

 What about the following plan:
 - Leave as is for now (Core still supports 5.6).
 - Publish a post on Make/Core and cross post to the Make/Plugins blog
 detailing that this variable should not be used, and `php://input` should
 be used instead.
 - Detailing in that post that it would be removed from core when the
 minimum required version of PHP is bumped to 7.0.
 - Removing the variable in Core when the version requirement is bumped to
 7.0.

 If by chance someone is utilizing the variable, it will still work as
 expected for now, but there is documentation around how to stop using it,
 and they are given some time to make an adjustment. The comments of that
 post on Make/Core may also give us some BC guidance if someone is using it
 unconventionally.

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


More information about the wp-trac mailing list