[php-src] Issue #22022: Failed test for CURLOPT_PREREQFUNCTION

[email protected] (orlitzky)
Newsgroups php.bugs
Message-ID <[email protected]>
Issue: https://github.com/php/php-src/issues/22022
Author: orlitzky

### Description

With the network disabled, we are getting a test failure in ext/curl/tests/curl_setopt_CURLOPT_PREREQFUNCTION.phpt for the CURL_PREREQFUNC_ABORT case, 

```
$ 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

```plain
PHP 8.4.21 through git master
```

### Operating System

Gentoo linux (tests run with network disabled)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.