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
Comment #1
solotandem commentedFixed 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.
Comment #2
solotandem commented