The following code on line 765 (and 3 other times) of user.test:

if ($this->_directory_test)
  if (image_get_toolkit()) {

into

else if ($this->_directory_test image_get_toolkit()) {

Causes the parser to merge the two statements into one. Really bad code style, but valid PHP syntax.

I filed issue to fix style in core: #724788: Ugly code sytle, against guidelines in user.test.

Comments

solotandem’s picture

Assigned: Unassigned » solotandem
Status: Active » Fixed

Fixed in next dev release.

This bug generalizes to "block statements without braces whose single statement body is itself a block statement." Block statements include if, else, elseif, for, foreach, do, and while.

solotandem’s picture

Title: If without brace and block aftwards » Block statements without braces whose body is a block statement

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.