Fixed wrong line numbers in error messages for multi-line statements

Partially fixes #1351
the line should also be added for PHP 5.4+