Skip to content
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

Merged
merged 2 commits into from
Jul 18, 2019

Conversation

thomashohn
Copy link
Contributor

@thomashohn thomashohn commented May 15, 2019

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).

@coveralls
Copy link

coveralls commented May 15, 2019

Coverage Status

Coverage decreased (-0.07%) to 97.142% when pulling 7bda6b7 on thomashohn:BUG-453 into d8ccbcd on TYPO3:master.

Copy link
Contributor

@mbrodala mbrodala left a 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.

@thomashohn
Copy link
Contributor Author

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 ;-)

@thomashohn thomashohn changed the title [BUGFIX] PR-453 Return text node with the full text instead [BUGFIX] PR-454 Return text node with the full text instead May 16, 2019
@NamelessCoder NamelessCoder changed the title [BUGFIX] PR-454 Return text node with the full text instead [BUGFIX] Return text node with the full text instead (#453) Jul 18, 2019
@NamelessCoder NamelessCoder changed the title [BUGFIX] Return text node with the full text instead (#453) [BUGFIX] Return text node if pcre fails to parse (#453) Jul 18, 2019
@mbrodala mbrodala merged commit 865890c into TYPO3:master Jul 18, 2019
@mbrodala
Copy link
Contributor

Thanks for the change.

CDRO pushed a commit to CDRO/Fluid that referenced this pull request Oct 26, 2021
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.

4 participants