Skip to content

Issue with libcurl in php:8.3-apache-bookworm causing connection errors #1542

Closed
@jvancoillie

Description

@jvancoillie

Description:

When using the php:8.3-apache-bookworm Docker image behind a corporate proxy, I encountered an issue with curl during composer install. The error indicates a problem with the connection, and it didn't occur when using the php:8.2-apache-bookworm image. The error appears to be related to libcurl in the new PHP 8.3 image.

Here is the error log:

Failed to download symfony/var-dumper from dist: curl error 2 while downloading https://api.github.com/repos/symfony/var-dumper/zipball/ee14c8254a480913268b1e3b1cba8045ed122694: [CONN-1-0] send: no filter connected Now trying to download from source
Syncing symfony/http-kernel (v6.4.12) into cache Failed to download symfony/serializer from dist: curl error 2 while downloading https://codeload.github.com/symfony/serializer/legacy.zip/10ae9c1b90f4809ccb7277cc8fe8d80b3af4412c: [CONN-9-0] send: no filter connected Now trying to download from source

Steps to reproduce the issue:

  1. Use the php:8.3-apache-bookworm image behind a corporate proxy.
  2. Run composer install with any project that requires dependencies from GitHub.

Expected behavior:

The dependencies should be downloaded without connection issues, as they were with php:8.2-apache-bookworm php:8.2-apache-bullseye.

Additional information:

  • PHP version: 8.3.12 (cli)
  • Curl version: 7.88.1-10+deb12u7
  • Proxy environment: Corporate proxy (configured with http_proxy and https_proxy environment variables)
  • This issue does not occur with the php:8.2-apache-bookworm image, suggesting it may be related to the upgrade to PHP 8.3 and/or the version of libcurl.

Please advise if any additional information is required to assist in debugging this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions