[wp-trac] [WordPress Trac] #38311: Remove undefined variable `$port` in src/wp-admin/includes/class-ftp-sockets.php:141

WordPress Trac noreply at wordpress.org
Mon Oct 17 02:30:15 UTC 2016


#38311: Remove undefined variable `$port` in src/wp-admin/includes/class-ftp-
sockets.php:141
--------------------------------+------------------------------
 Reporter:  miyauchi            |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------
Changes (by dd32):

 * component:  General => External Libraries


Comment:

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38311#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list