Giter Site home page Giter Site logo

Comments (9)

VinceT avatar VinceT commented on May 28, 2024 1

Just downloaded latest version of cURL (https://curl.se/windows/dl-8.6.0_2/curl-8.6.0_2-win64-mingw.zip).
Unfortunately for you, it works perfectly...

from php-src.

nielsdos avatar nielsdos commented on May 28, 2024

We did update the curl version for the Windows builds because of upstream security patches.
PHP 8.2.15 would have used libcurl 8.4 and PHP 8.2.16 uses libcurl 8.6.
Can you confirm you are using libcurl 8.6 and can you check whether you can reproduce the issue with the curl command line?

from php-src.

VinceT avatar VinceT commented on May 28, 2024

Hi,
I don't know how to check libcurl version. I guess I use the "php_curl.dll" which is packaged with each version. "Properties" of the files are not useful. The only difference is the file size : 8.2.15 = 665k vs 8.2.16 = 675k.
Both files (renamed) are attached in a zip file.
php_curl.zip

I launched the following curl command in a DOS console :
curl "http://localhost:8100/analytique" -I -H "Prefer: count=exact" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoicGdiYW5xdWUifQ.HtTypposHWuwOhg0EIJy90GlrMo-xQnJPizF1Se3n4c"
And the result is (as expected) :
HTTP/1.1 200 OK
Date: Thu, 29 Feb 2024 15:18:35 GMT
Server: postgrest/12.0.2 (a4e00ff)
Content-Range: 0-36/37
Content-Location: /analytique
Content-Type: application/json; charset=utf-8
Preference-Applied: count=exact

The line that I parse to get the number of records is "Content-Range: 0-36/37"

from php-src.

VinceT avatar VinceT commented on May 28, 2024

Stupid me ! phpinfo gives the following for 8.2.15 :

cURL Information | 8.4.0

and for 8.2.16 :

cURL Information | 8.6.0

from php-src.

VinceT avatar VinceT commented on May 28, 2024

PHP 8.2.16 + cURL 8.4.0 works like a charm.

from php-src.

nielsdos avatar nielsdos commented on May 28, 2024

PHP 8.2.16 + cURL 8.4.0 works like a charm.

Then it's either a curl problem or something wrong with our build.

Some questions :-)
When you tried the curl command in the DOS console, did you try version 8.4 or 8.6?
Does it not work all the time or only sometimes?
Are you able to set up a reproducing script?

from php-src.

VinceT avatar VinceT commented on May 28, 2024

1/ curl -V
curl 8.4.0 (Windows) libcurl/8.4.0 Schannel WinIDN
Release-Date: 2023-10-11
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp smtps telnet tftp
Features: AsynchDNS HSTS HTTPS-proxy IDN IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI threadsafe Unicode UnixSockets

2/ I guess it's only about PHP, not Windows.
8.4.0 : always OK (totals and details),
8.6.0 : details always OK, totals ("Prefer: count=exact") always KO.

3/ No idea of how to do that. Sorry.

from php-src.

nielsdos avatar nielsdos commented on May 28, 2024

Thanks for the answer. So you now tested it with curl 8.4 command line, which works. Can you test with curl 8.6 command line? If that doesn't work then it's not a problem at our side but a regression at curl and we should report it there then.

from php-src.

nielsdos avatar nielsdos commented on May 28, 2024

Okay thanks for checking.
I see the error gets emitted from inside libcurl, I'd have to try to reproduce the issue to figure out what's wrong.

from php-src.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.