Skip to content

More curl tests - #23333

Open
Sjord wants to merge 19 commits into
php:masterfrom
Sjord:more-curl-tests
Open

More curl tests#23333
Sjord wants to merge 19 commits into
php:masterfrom
Sjord:more-curl-tests

Conversation

@Sjord

@Sjord Sjord commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Sjord
Sjord marked this pull request as ready for review August 18, 2026 08:38
@Sjord
Sjord requested a review from adoy as a code owner August 18, 2026 08:38
@Sjord

Sjord commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

@NickSdot Could you take a look at this?

@NickSdot NickSdot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot really judge in detail what's tested, but found some things worth pointing out. Also, can confirm that this closes coverage gaps. ✌️

Coverage: ext/curl

Base: c621cbe27ffe59ed98228724d674dcadcf7f6e8d upstream/master
Tree: 2aa80efcacc776c87712a9beed9487c40be6cffc working tree

+--------+-------+---------+--------------------+-------------------+--------+---------+
|        | Tests | Sources |              Lines |          Branches |   Time |  Memory |
+--------+-------+---------+--------------------+-------------------+--------+---------+
| Base   |   189 |       6 | 2520/2912 (86.54%) | 847/4640 (18.25%) | 64.23s | 45.5 MB |
| Tree   |   197 |       6 | 2538/2912 (87.16%) | 857/4640 (18.47%) | 68.17s | 45.1 MB |
| Change |    +8 |       0 |  +18 / -0 (+0.62%) | +10 / -0 (+0.22%) | +3.94s | -0.4 MB |
+--------+-------+---------+--------------------+-------------------+--------+---------+

Comment thread ext/curl/tests/curl_getinfo_CURLINFO_HEADER_OUT.phpt Outdated
Comment thread ext/curl/tests/curl_setopt_CURLOPT_POSTREDIR.phpt Outdated
Comment thread ext/curl/tests/curl_setopt_CURLOPT_SSH_HOSTKEYFUNCTION.phpt
Comment thread ext/curl/tests/curl_setopt_CURLOPT_MAXFILESIZE_LARGE.phpt
Comment thread ext/curl/tests/curl_setopt_CURLOPT_WRITEHEADER.phpt Outdated
Comment thread ext/curl/tests/curl_setopt_CURLOPT_WRITEHEADER.phpt Outdated
Comment thread ext/curl/tests/curl_setopt_CURLOPT_FNMATCH_FUNCTION.phpt Outdated
@Sjord

Sjord commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

@LamentXU123 Could you take a look at this?

@LamentXU123

Copy link
Copy Markdown
Member

Sorry, I am not familiar with curl API. Maybe @devnexen can help here.

Comment thread ext/curl/tests/curl_setopt_CURLOPT_SSH_HOSTKEYFUNCTION.phpt Outdated
Comment thread ext/curl/tests/curl_setopt_CURLOPT_FNMATCH_FUNCTION.phpt Outdated
@Sjord Sjord closed this Aug 25, 2026
@Sjord Sjord reopened this Aug 25, 2026
@Sjord

Sjord commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Windows test fails with:

Curl option CURLOPT_FNMATCH_FUNCTION [D:\a\php-src\php-src\ext\curl\tests\curl_setopt_CURLOPT_FNMATCH_FUNCTION.phpt]

This doesn't seem related to this PR, but I am not sure what is going on.

I will look into making this work on Windows as well.

@Sjord Sjord closed this Aug 28, 2026
@Sjord Sjord reopened this Aug 28, 2026
@Sjord

Sjord commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

The test FTP server uses fork, so of course it doesn't work on Windows. I added a SKIPIF.

After I fixed that, it failed on sapi/cli/tests/php_cli_server_expect_100_continue_socket.phpt. That makes me pretty nervous. I looked into it and cannot reproduce it. I retriggered the CI and now it succeeds. In any case this seems unrelated to these curl tests.

So this is done and can be reviewed and merged.

@devnexen

Copy link
Copy Markdown
Member

will try to have a look this week end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants