Comments (9)
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.
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.
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.
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.
PHP 8.2.16 + cURL 8.4.0 works like a charm.
from php-src.
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.
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.
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.
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)
- ext-sockets won't compile in official Docker image 8.3.3-fpm-alpine3.19 HOT 3
- PHP_FCGI_MAX_IDLE_TIMEOUT environment variabile option for php-cgi
- Please, report to the developers HOT 6
- Add ext/xml Expat workflow to nightly
- Special error with multiplication + type casting for (2.01 * 1000000) HOT 1
- Imagick::readImage segfaults with heic file HOT 5
- Setting boolean values via env in php config fails for all values other than `1` and `""` HOT 1
- New Garbage Collector feature for WeakMap added in 8.3 #10932 causes GC buffer overflow which then causes segfault HOT 8
- use reflection to determine whether a global constant is deprecated HOT 6
- Treat NetBSD like FreeBSD HOT 3
- SQLite3Result::fetchArray runs the query again. [O: Bug #64531 ]
- Calculation problems with comma numbers HOT 1
- Double quotes accepted unexpectedly for literal value escape in SQLite HOT 5
- opcache.interned_strings_buffer = 4096 is ignored and using default (PHP8) + segfault (PHP7+PHP5) HOT 8
- Out of memory with 1MB strings even though memory_get_usage reports 50% utilization HOT 8
- Fallback to using Certificate Authority from Windows Certificate Store
- socket_getsockname returns wrong address on some unix filename
- "gmake test" fails with 98.5% HOT 7
- Regression: Values on array properties on $this are not available to anonymous function are they have mutated HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-src.