[php-src] Issue #15422: Composer & php-curl timeout problem WSL2 (Ubuntu 24.04) x Windows 11
| From: | koa5157bw | Date: | Thu, 15 Aug 2024 10:50:38 +0000 |
| Subject: | [php-src] Issue #15422: Composer & php-curl timeout problem WSL2 (Ubuntu 24.04) x Windows 11 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247501@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15422
Author: koa5157bw
### Description
When I have installed php-curl extension what is optional for composer (recommended for performence)
I have issue timeout so I have always prefer-source to avoid timeout but performance with php-curl
is so bad- no way to work like that.. it happens only with curl php extension installed on ubuntu
via wsl2, on windows composer is all right
```
composer diagnose
Checking platform settings: OK
Checking git settings: OK git version 2.43.0
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: A connection timeout was encountered. If you intend to run
Composer without connecting to the internet, run the command again prefixed with
COMPOSER_DISABLE_NETWORK=1 to make Composer run in offline mode.
FAIL
[Composer\Downloader\TransportException] curl error 28 while downloading https://api.github.com/: Resolving timed out after 10001
milliseconds
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: ***
Dev Public Key Fingerprint: ***
OK
Checking Composer version: OK
Checking Composer and its dependencies for vulnerabilities: OK
Composer version: 2.7.7
PHP version: 8.3.6
PHP binary path: /usr/bin/php8.3
OpenSSL version: OpenSSL 3.0.13 30 Jan 2024
curl version: 8.5.0 libz 1.3 ssl OpenSSL/3.0.13
zip: extension present, unzip present, 7-Zip present (7z)
```
when I remove php-curl from ubuntu composer diagnose:
```
composer diagnose
Checking platform settings: OK
Checking git settings: OK git version 2.43.0
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK does not expire
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: **
Dev Public Key Fingerprint: **
OK
Checking Composer version: OK
Checking Composer and its dependencies for vulnerabilities: OK
Composer version: 2.7.7
PHP version: 8.3.6
PHP binary path: /usr/bin/php8.3
OpenSSL version: OpenSSL 3.0.13 30 Jan 2024
curl version: missing, using php streams fallback, which reduces performance
zip: extension present, unzip present, 7-Zip present (7z)
```
so is there any solution for fixing php-curl? I remember that on older versions of php 7.4 I
haven't any problem with composer on ubuntu via WSL2.
### PHP Version
php 8.3
### Operating System
ubuntu 24.04 over wsl2 w11