After upgraded to PHP 7:
Fatal error: 'break' not in the 'loop' or 'switch' context in
modules/contrib/imageapi/imageapi_gd.module on line 54

CommentFileSizeAuthor
#2 imageapi-php7-fatal-error-2782369-2.patch415 bytesKgaut
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gung Wang created an issue. See original summary.

Kgaut’s picture

Status: Active » Needs review
FileSize
415 bytes

A patch fixing this issue

dgtlmoon’s picture

Status: Needs review » Reviewed & tested by the community

worked for me

RumyanaRuseva’s picture

Worked for me too, a simple and obvious patch.

joelpittet’s picture

ziomizar’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Provided patch here still have unused code after the return statement.

Closed as duplicated of #2639570: invalid syntax / logic in imageapi_gd.module which provide a correct patch.

apaderno’s picture

Issue tags: -php 7 fatal error +PHP 7.0 (duplicate)
DamienMcKenna’s picture