Skip to content

PHP 8.5 started to fail ext/curl/tests/curl_setopt_ssl.phpt on alpinelinux with curl 8.16 #19925

Closed

Description

@andypost

Description

The following test fail on every arch even for beta3

TEST 1/1 [ext/curl/tests/curl_setopt_ssl.phpt]
========DIFF========
--
     bool(true)
     bool(true)
     client cert subject not in response
022- CURL ERROR: 58
022+ CURL ERROR: 43
     
     case 4: client cert and key from file

when I added message:

--
     bool(true)
     bool(true)
     client cert subject not in response
022- CURL ERROR: 58
022+ CURL ERROR: 43unable to set private key file: '(memory blob)' type PEM
     
     case 4: client cert and key from file
     bool(true)

Looks like replacing

-    var_dump(curl_setopt($ch, CURLOPT_SSLCERT_BLOB, $clientCert));
+    var_dump(curl_setopt($ch, CURLOPT_SSLCERT_BLOB, ''));
    var_dump(curl_setopt($ch, CURLOPT_SSLKEY_BLOB, ''));

allows the test to pass

PHP Version

PHP 8.5.0beta3
PHP 8.4.13
curl 8.16

Operating System

Alpinelinux

Activity

  1. andypost commented on Sep 22, 2025

    @andypost
    ContributorAuthor
  2. andypost commented on Sep 23, 2025

    @andypost
    ContributorAuthor

    the same happening for newly released 8.4.13

  3. added a commit that references this issue on Sep 23, 2025
  4. bukka commented on Oct 7, 2025

    @bukka
    Member

    Fix in #20093

  5. linked a pull request that will close this issueCurl 8.16 fixes #20093on Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions