Skip to content

Failed test for CURLOPT_PREREQFUNCTION #22022

@orlitzky

Description

@orlitzky

Description

We are getting a test failure in ext/curl/tests/curl_setopt_CURLOPT_PREREQFUNCTION.phpt for the CURL_PREREQFUNC_ABORT case,

$ cat curl_setopt_CURLOPT_PREREQFUNCTION.diff 
--
     bool(true)
     bool(true)
     bool(false)
014- string(41) "operation aborted by pre-request callback"
014+ string(63) "failed to open socket: Address family not supported by protocol"
     int(42)
     bool(true)
     
--

I was about to create a PR to support both error messages, but the int(42) here is CURLE_ABORTED_BY_CALLBACK, so now I am wondering why the error message does not agree with the error number. Maybe it is a real bug?

cc: @Ayesh @Girgias

PHP Version

PHP 8.4.21 through git master

Operating System

Gentoo linux

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