Topic: http_parse_cookie on PHP 7

I need to parse cookie for a project (http_parse_cookie) , how can i install it

I am on PHP 7.0.2 , Centos 6.6

Thanks

Re: http_parse_cookie on PHP 7

This function is part of pecl_http version 1 which is only compatible with PHP <= 5.5

So you have to update your applciation to use pecl_http v2, see https://mdref.m6w6.name/http/Cookie

Then you can install (php7O)-php-pecl-http

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: http_parse_cookie on PHP 7

Thanks remi http v2 seems great

I have one question.... how can i make sense of the flags

https://mdref.m6w6.name/http/Cookie/__construct

I get a value of 32 with a cookie that contain ` secure; HttpOnly`

Is there a documentation for the numbers so that i can know what attributes does a specific number represent

Thanks again

Re: http_parse_cookie on PHP 7

Sorry I don't understand your question.
And I can't really help more on this ext., doc should be enough ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi