[wp-trac] [WordPress Trac] #31940: Suppressed fatal error in WP_Image_Editor_GD class
WordPress Trac
noreply at wordpress.org
Thu Apr 9 12:26:58 UTC 2015
#31940: Suppressed fatal error in WP_Image_Editor_GD class
--------------------------+-----------------------------
Reporter: nevma | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.1.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Class: WP_Image_Editor_GD
File: wp-includes/class-wp-image-editor-gd.php
Method: load()
Line: 102
Exact code: $this->image = @imagecreatefromstring( file_get_contents(
$this->file ) );
When processing large images, there is the possibility for the memory to
get exhausted. In that case, the execution just stops without any
notification.
While this is not a bug in terms of data handling, the reason of a fatal
PHP error should probably be somehow communicated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31940>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list