Skip to content

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

@andypost

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

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