Emit warning when ftp_connect() fails to connect
Open
Nobody has claimed this yet.
Extension: ftp
Feature
Status: Needs Triage
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
Description
ftp_connect() should return fatal error or warning in case Ftp is turned off on Server. it took me days to figure out that FTP was turned off on the server since the function doesn't return any error/warning/notice.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the ftp_connect() entry point in php-src and the existing FTP tests; reproduce a failed connection when FTP is disabled on the server. Done means the failure produces the warning or fatal error requested in the issue, with test coverage for that situation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, php
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100