Skip to content

ext/ftp/tests: add with_data_connection to mock server - #23455

Open
Sjord wants to merge 7 commits into
php:masterfrom
Sjord:cleanup-ftp-server-inc
Open

ext/ftp/tests: add with_data_connection to mock server#23455
Sjord wants to merge 7 commits into
php:masterfrom
Sjord:cleanup-ftp-server-inc

Conversation

@Sjord

@Sjord Sjord commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

FTP uses separate control and data connections. Extract setting up the data connection to a separate function. This was duplicated many times throughout the test server.

Also use fgets instead of fread, because that matches FTP's line-based protocol better.

@Sjord
Sjord force-pushed the cleanup-ftp-server-inc branch from 47c5a80 to 817ea85 Compare August 25, 2026 15:56
@Sjord
Sjord marked this pull request as ready for review August 29, 2026 16:03
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.

1 participant