Codemirror 4.12.0 - cannot edit PHP files with missing ?>

After upgrading to 4.12.0 (from 4.1), we can no longer open PHP files that do not have a final ?> tag. An exception occurs somewhere in some XML matching tag code (sorry, lost my stack trace).

Considering that it is best practice not to include the final ?> tag, this is a huge problem…

Thanks
Gulliver

Without a stack trace or a test page to reproduce this, there’s not much I can say about it. The php demo does not appear to have the problem.