Opened 10 years ago
Closed 7 years ago
#38311 closed defect (bug) (invalid)
Remove undefined variable `$port` in src/wp-admin/includes/class-ftp-sockets.php:141
| Reported by: | miyauchi | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | External Libraries | Version: | 2.5 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
$port is undefined in this function.
Attachments (1)
Change History (7)
#3
@
7 years ago
- Keywords reporter-feedback close added
@miyauchi Are you able to clarify if you were seeing a PHP notice?
Marking this as close pending the answer to that question. Since this is an older external library that has not been updated in some time, I think we should only fix this if a notice is triggered.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @miyauchi!
Does this cause a PHP Notice or similar for you, or was it discovered through a static analysis application or similar?
The reason I ask, is that although the variable is unused, it doesn't appear to cause any problems as it's a return by-ref variable, and part of an external library.