[wp-trac] [WordPress Trac] #52569: Don't let PHP timeout in the middle of an ImageMagick operation
WordPress Trac
noreply at wordpress.org
Wed Feb 22 14:18:47 UTC 2023
#52569: Don't let PHP timeout in the middle of an ImageMagick operation
--------------------------+-----------------------
Reporter: drzraf | Owner: antpb
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.2
Component: Media | Version: 5.6.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------
Comment (by SergeyBiryukov):
Some minor edits in [attachment:"52569.diff"]:
* Rename the method to `::set_imagick_time_limit()` to match WPCS
recommendations and other methods.
* Use `(int)` and `(float)` type casting instead of `intval()` and
`floatval()`, see [49108].
* Call `::set_imagick_time_limit()` a bit later in `::resize()` to avoid a
double call in case `$crop` is true.
* Minor documentation adjustments.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52569#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list