[wp-trac] [WordPress Trac] #51057: [PHP 8] PemFTP - Fix is_resource() calls on Socket class objects

WordPress Trac noreply at wordpress.org
Wed Aug 19 01:00:47 UTC 2020


#51057: [PHP 8] PemFTP - Fix is_resource() calls on Socket class objects
--------------------------------+-----------------------------
 Reporter:  ayeshrajans         |       Owner:  SergeyBiryukov
     Type:  defect (bug)        |      Status:  reviewing
 Priority:  normal              |   Milestone:  5.6
Component:  External Libraries  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  php8                |     Focuses:
--------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Hmm, haven't tested it yet, but as far as I can see looking at the code,
 the `$fp` variable here is a file handle created with `fopen()`, not with
 any of the `socket_*()` functions. So it seems like `is_resource()` checks
 should still work?

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


More information about the wp-trac mailing list