-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX] Return text node if pcre fails to parse (#453) #454
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a description what this is needed for? If possible please also add a unit test.
It actually also depends/should be merged together with another patch that @NamelessCoder will create where he is fixing the namespacing issue PR-352 I believe - so just let it cook for a couple of days ;-) |
Thanks for the change. |
Return text node with the full text instead instead of dying.
When PCRE is unable to parse a chunk of Fluid code, a fatal PHP
error will be encountered. The cause is platform- and version-
dependent and cannot be reproduced with a unit test (at least
not without further refactoring in a class that's being already
in the process of being rewritten).