[RFC] pecl_http

php.internals

Michael Wallner

12 years ago
Hi PHP internals! I've created an RFC for discussion: Whether it is feasible to add pecl_http v2 to the core. https://wiki.php.net/rfc/pecl_http
-- Regards, Mike

Jan Ehrhardt

12 years ago
Michael Wallner in php.internals (Tue, 19 Aug 2014 09:49:34 +0200):
>Hi PHP internals! > >I've created an RFC for discussion: > > Whether it is feasible to add pecl_http v2 to the core. > >https://wiki.php.net/rfc/pecl_http
Is pecl_http v2 still dependent on propro and raphf? If so, they should be in core as well. Jan

Pierre Joye

12 years ago
On Tue, Aug 19, 2014 at 11:17 AM, Jan Ehrhardt <phpdev@ehrhardt.nl> wrote:
> Michael Wallner in php.internals (Tue, 19 Aug 2014 09:49:34 +0200): >>Hi PHP internals! >> >>I've created an RFC for discussion: >> >> Whether it is feasible to add pecl_http v2 to the core. >> >>https://wiki.php.net/rfc/pecl_http > > Is pecl_http v2 still dependent on propro and raphf? If so, they should > be in core as well. >
I never really understood why they are needed or why they have been splitted off. I can imagine that other exts may need a similar thing but... Cheers,
-- Pierre @pierrejoye | http://www.libgd.org

Michael Wallner

12 years ago
On 19 August 2014 11:24, Pierre Joye <pierre.php@gmail.com> wrote:
> On Tue, Aug 19, 2014 at 11:17 AM, Jan Ehrhardt <phpdev@ehrhardt.nl> wrote: > > Is pecl_http v2 still dependent on propro and raphf? If so, they should > > be in core as well. > > > > I never really understood why they are needed or why they have been > splitted off. I can imagine that other exts may need a similar thing > but... >
To be reusable. pecl/raphf is also used by pecl/pq; peck/propro has not had another use case yet, though.
-- Regards, Mike

Pierre Joye

12 years ago
On Tue, Aug 19, 2014 at 2:19 PM, Michael Wallner <mike@php.net> wrote:
> On 19 August 2014 11:24, Pierre Joye <pierre.php@gmail.com> wrote: >> >> On Tue, Aug 19, 2014 at 11:17 AM, Jan Ehrhardt <phpdev@ehrhardt.nl> wrote: >> > Is pecl_http v2 still dependent on propro and raphf? If so, they should >> > be in core as well. >> > >> >> I never really understood why they are needed or why they have been >> splitted off. I can imagine that other exts may need a similar thing >> but... > > > To be reusable. pecl/raphf is also used by pecl/pq; peck/propro has not had > another use case yet, though.
propo could be a spl thing, if usefull for other. As of raphf, not sure, mixed toughts. Maybe as part of main/? I am not sure I like to habe two other extensions for that, they are handy tho' :)
-- Pierre @pierrejoye | http://www.libgd.org

Michael Wallner

12 years ago
On 19 August 2014 11:17, Jan Ehrhardt <phpdev@ehrhardt.nl> wrote:
> > Is pecl_http v2 still dependent on propro and raphf? If so, they should > be in core as well. > >
Yes, they are mentioned in the "Open Issues" section.
-- Regards, Mike

Johannes Schlueter

12 years ago
On Tue, 2014-08-19 at 09:49 +0200, Michael Wallner wrote:
> Hi PHP internals! > > I've created an RFC for discussion: > > Whether it is feasible to add pecl_http v2 to the core. > > https://wiki.php.net/rfc/pecl_http
In my opinion when moving this to core the http(s):// stream should use the same HTTP implementation so one has consistent behavior. I also see that HTTP offers "Content type guessing [...] by building this extension with libmagic support" I think that should based on fileinfo so both report the same type for a file. Again consistency. I also think the HTTP module should be forced on (like SPL or pcre) or at least be on by default (unless --disable-[all|http] is used) johannes

Michael Wallner

12 years ago
On 19 August 2014 13:53, Johannes Schlüter <johannes@schlueters.de> wrote:
> > In my opinion when moving this to core the http(s):// stream should use > the same HTTP implementation so one has consistent behavior. > >
This would add a hard dependency on libcurl, which I'd be obviously fine with.
> I also see that HTTP offers "Content type guessing [...] by building > this extension with libmagic support" I think that should based on > fileinfo so both report the same type for a file. Again consistency. >
This is from the v1-docs and was developed in a time before Fileinfo existed. That feature was not elevated to v2.
> > I also think the HTTP module should be forced on (like SPL or pcre) or > at least be on by default (unless --disable-[all|http] is used) > > johannes > >
-- Regards, Mike

Michael Wallner

12 years ago
On 19/08/14 09:49, Michael Wallner wrote:
> Hi PHP internals! > > I've created an RFC for discussion: > > Whether it is feasible to add pecl_http v2 to the core. > > https://wiki.php.net/rfc/pecl_http >
Just a heads up. People seem very confused because they read the docs on php.net and don't bother to actually read the (very short) RFC, so here's a link to the API docs of v2; you're welcome. http://devel-m6w6.rhcloud.com/mdref/http/
-- Regards, Mike

Michael Wallner

11 years ago
On 19/08/14 09:49, Michael Wallner wrote:
> Hi PHP internals! > > I've created an RFC for discussion: > > Whether it is feasible to add pecl_http v2 to the core. > > https://wiki.php.net/rfc/pecl_http >
Just a minor update: the two PECL depencies have been ported to ZE3.
-- Regards, Mike

Pierre Joye

11 years ago
On Dec 17, 2014 5:26 PM, "Michael Wallner" <mike@php.net> wrote:
> > On 19/08/14 09:49, Michael Wallner wrote: > > Hi PHP internals! > > > > I've created an RFC for discussion: > > > > Whether it is feasible to add pecl_http v2 to the core. > > > > https://wiki.php.net/rfc/pecl_http > > > > Just a minor update: the two PECL depencies have been ported to ZE3. >
Btw, I still wonder if their features could be provided as part of php instead of having to add 3 exts. Thoughts?

Michael Wallner

11 years ago
On 18/12/14 01:38, Pierre Joye wrote:
> > On Dec 17, 2014 5:26 PM, "Michael Wallner" <mike@php.net > <mailto:mike@php.net>> wrote: >> >> Just a minor update: the two PECL depencies have been ported to ZE3. >> > > Btw, I still wonder if their features could be provided as part of php > instead of having to add 3 exts. Thoughts? >
I guess we could. pecl/propro was a replacement for the (then) disfunctional zend_object_proxy, which seemingly has completely gone in ZE3 except a dangling declaration in zend_objects_API.h. pecl/raphf sort of overlaps with zend_list API, though.
-- Regards, Mike