Problem installing plugin: unexpected T_STRING, expecting T_FUNCTION

Now this one was really really hard to notice bug. I basically brutforced it by cutting/pasting blocks of code.

Long story short – line 462 has wrong code opening tag <? instead of <?php. Which causes some kind of cascading tag mismatch, which seems to go unnoticed by any kind of syntax checker, but wreaks havoc on execution.