[wp-trac] [WordPress Trac] #50833: [PHP 8] GD resources are GdImage object instances

WordPress Trac noreply at wordpress.org
Sun Aug 16 13:32:14 UTC 2020


#50833: [PHP 8] GD resources are GdImage object instances
----------------------------+-------------------------------
 Reporter:  ayeshrajans     |       Owner:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  5.6
Component:  Media           |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  php8 has-patch  |     Focuses:  coding-standards
----------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48798" 48798]:
 {{{
 #!CommitTicketReference repository="" revision="48798"
 Code Modernization: Introduce `is_gd_image()` to check for PHP 8 `GdImage`
 object instances.

 In PHP 8, the GD extension uses `GdImage` objects instead of resources for
 its underlying data structures.

 This updates the existing `is_resource()` calls for image resources in
 core to accomodate for `GdImage` instances as well.

 Props ayeshrajans, jrf.
 Fixes #50833.
 }}}

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


More information about the wp-trac mailing list