Make WordPress Core

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)

38311.patch (661 bytes ) - added by miyauchi 10 years ago.

Download all attachments as: .zip

Change History (7)

@miyauchi
10 years ago

#1 @dd32
10 years ago

  • Component GeneralExternal Libraries

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.

#2 @miyauchi
10 years ago

OK, thanks! :)

#3 @desrosj
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.

#4 @desrosj
7 years ago

  • Version2.5

#5 @miyauchi
7 years ago

@desrosj

Actually, I don't remember how I found this issue. :)
And I am ok to close this ticket now.

Thanks!

#6 @desrosj
7 years ago

  • Keywords reporter-feedback close removed
  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed
Note: See TracTickets for help on using tickets.