Jordi Boggiano
|
d64d1adf61
|
Rewrite php file cleaning step to be less regex intensive and support extreme cases better, fixes #10106 (#10107)
|
3 years ago |
Jordi Boggiano
|
d8054d1d2f
|
Add more possessive quantifiers, unicode flag and support for more post-heredoc syntax, fix test file syntax being invalid
|
3 years ago |
Jordi Boggiano
|
3f79e59f69
|
Add test assertions for heredoc marker inside the text
|
3 years ago |
jrfnl
|
b66b23a03f
|
ClassMapGeneratorTest: add test with consecutive duplicate heredoc markers
... as well as a test with heredoc markers with only a newline character between the start and end marker.
|
3 years ago |
jrfnl
|
e729c418dd
|
ClassMapGenerator: add test for "marker in text" bug
In PHP < 7.3, the heredoc/nowdoc marker was allowed to occur in the text, as long as it did not occur at the very start of the line.
This was also not handled correctly.
Ref: https://www.php.net/manual/en/migration73.incompatible.php#migration73.incompatible.core.heredoc-nowdoc
|
3 years ago |
Rob Bast
|
25e3f6d4b9
|
expand regex and testcases
|
6 years ago |
Rob Bast
|
971528916b
|
fix regex for heredoc/nowdoc
* take into account relaxed changes introduced in php 7.3
* see: 4887357269
* allow " as well as ', which was introduced in php 5.3
closes #8080
|
6 years ago |
Fabien Potencier
|
12421dd6b7
|
fixed class map generator when using a heredoc with spaces
|
11 years ago |
Jordi Boggiano
|
de3235a2a4
|
Add tests to prevent regressions on strings/nowdoc/comment stripping
|
12 years ago |