WordPress.org

Make WordPress Core

Opened 6 days ago

Last modified 5 days ago

#50833 reviewing defect (bug)

[PHP 8] GD resources are GdImage object instances

Reported by: ayeshrajans Owned by: SergeyBiryukov
Milestone: 5.6 Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-patch php8
Focuses: Cc:

Description

In PHP 8, GD extension uses GdImage class objects instead of resources.

https://php.watch/versions/8.0/gdimage

This is a preemptive ticket aiming WordPress 5.6.

Without these changes, WordPress early-fails to process images because it is being defensive with multiple is_resource() checks which will no longer return true in PHP 8.0.

Attachments (1)

50833.patch (12.6 KB) - added by ayeshrajans 5 days ago.
Tests: https://travis-ci.com/github/Ayesh/wordpress-develop/builds/178167517

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
5 days ago

  • Component changed from General to Media
  • Milestone changed from Awaiting Review to 5.6

#2 @SergeyBiryukov
5 days ago

  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.