Factored out logic for getting the line number in code string for an offset to util.getLineNumber(...) method
Added line numbers to PHP syntax/parse error messages