Add missing semicolon & create __new__ exceptions

Both are fatal in php