php / php/php-src

Emit warning when ftp_connect() fails to connect

Open
#9,898 8 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.