[wp-trac] [WordPress Trac] #41483: supressed memory limit error at imagecreatefromstring

WordPress Trac noreply at wordpress.org
Sat Jul 29 17:19:28 UTC 2017


#41483: supressed memory limit error at imagecreatefromstring
--------------------------+-----------------------------
 Reporter:  klugmario     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello,
 I just found out that a fatal error thrown by imagecreatefromstring in wp-
 includes/class-wp-image-editor-gd.php gets suppressed by an @ before the
 function call.
 https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-
 image-editor-gd.php#L97

 Is this really neccessary?
 I had to dig very deep to find out why a clients homepage on a hosted
 environment does not work.
 Without this the out of memory limit error message would have been
 displayed by enabling WP_DEBUG.

 For my understanding it would not make mp difference without the @ when
 WP_DEBUG is not enabled.

 Why it's not possible to increase the limit with ini_set or .htaccess is a
 topic for the hoster but it would have been fine to see this error.

 Thanks in advance.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41483>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list