Skip to content

Parser: Fix php error when empty input#79

Closed
juniwalk wants to merge 1 commit intonette:masterfrom
juniwalk:parser-fix
Closed

Parser: Fix php error when empty input#79
juniwalk wants to merge 1 commit intonette:masterfrom
juniwalk:parser-fix

Conversation

@juniwalk
Copy link
Copy Markdown

@juniwalk juniwalk commented Sep 3, 2015

When template file is not in valid UTF-8 format, PHP warning is raised:

substr_count(): Length value 1 exceeds string length

This PR fixes this warning and let's Latte throw CompileException as it is expected.

@juniwalk
Copy link
Copy Markdown
Author

I see you had better fix. Thanks for fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant