Closed (fixed)
Project:
Grammar Parser
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Feb 2010 at 21:52 UTC
Updated:
11 Mar 2010 at 18:30 UTC
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