rfc:pecl_http

This is an old revision of the document!


PHP RFC: Add pecl_http to core

Introduction

A discussion whether it is feasible to add pecl_http (v2 API) to the core.

Proposal

Providing the functionality of pecl_http with the core distribution.

See the Github repo for the sources, the online markdown reference for the complete userland API and the LCOV code coverage report for a glance on test coverage.

The PHP7 port can be found here:
https://github.com/php/pecl-http-pecl_http/tree/phpng

A fully merged (http and dependencies) tree can be found here:
https://github.com/m6w6/php-src/tree/merge-http

Proposed PHP Version(s)

PHP7, resp. git:master

RFC Impact

To SAPIs

WEB:

  • pecl_http adds processing for json request bodies into $_POST

To Opcache

None.

New Constants

No new global constants.

php.ini Defaults

  • http.etag.mode => crc32b

Open Issues

The PHP manual still hosts the docs for pecl_http-v1 and it's not been decided how to handle the documentation of pecl_http-v2 which are located here.

Unaffected PHP Functionality

The http: stream wrapper is unaffected by pecl_http.

Proposed Voting Choices

A three-way yes (enabled by default) / yes (disabled by default) / no vote with a 50%+1 majority for both yes choices combined needed for acceptance.

Changelog

  • 1.1
    • Added “Feature corner stones”
  • 1.2
    • Improvements to “Introduction” and “Proposal”
  • 1.3
    • Added another link to the current docs
  • 1.4
    • Added link to fully merged tree
    • Expand voting options
rfc/pecl_http.1422443591.txt.gz · Last modified: 2017/09/22 13:28 (external edit)