Jordi Boggiano
|
e1bf45aa80
|
Fix issue parsing php files with unterminated comments found inside backticks, fixes #10385
|
3 years ago |
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
|
8cd2d0e541
|
Fix scanning of classmaps in files containing invalid Unicode, fixes #10102
|
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 |
Simon Berger
|
80a75e9959
|
Minor code improvements
|
4 years ago |
zakonnic
|
f159eb724a
|
Add test for double gap in php-file
|
5 years ago |
Rob Bast
|
25e3f6d4b9
|
expand regex and testcases
|
5 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
|
5 years ago |
Jordi Boggiano
|
3b9d6769bf
|
Fix class names in comments being parsed in short_open_tags files, fixes #7289
|
6 years ago |
Rob Bast
|
181b172e77
|
test cases for #5701
|
8 years ago |
Jordi Boggiano
|
e73448ae1e
|
Add possessive quantifiers to avoid backtracking and fix segfault on large files, fixes #4153
|
9 years ago |
Andrew Berry
|
59e14ff098
|
Fix test classes with invalid PHP.
|
9 years ago |
Fabien Potencier
|
12421dd6b7
|
fixed class map generator when using a heredoc with spaces
|
10 years ago |
David Simon
|
2665c60b2f
|
Test for bug parsing multiline strings with 'escaped' newlines
|
11 years ago |
Jordi Boggiano
|
78290945b8
|
Make sure there is a class to find in the file that must be ignored
|
12 years ago |
Jordi Boggiano
|
de3235a2a4
|
Add tests to prevent regressions on strings/nowdoc/comment stripping
|
12 years ago |
Jordi Boggiano
|
5a01ada383
|
Restrict unicode chars allowed to what php core allows, refs #1361
|
12 years ago |
Jordi Boggiano
|
2d7c3c9d27
|
Tweak #1361 to re-enable support for unicode classnames
|
12 years ago |
Igor Wiedler
|
530991217b
|
Support classmap generation for classes without space after class name
Class names with multi-byte characters are not supported.
Closes #1360.
|
12 years ago |
Jordi Boggiano
|
75da832cd3
|
Fix parsing of large files that go over the PCRE limits
|
12 years ago |
Jordi Boggiano
|
5a763cf010
|
Fix scanning of empty namespace{} blocks
|
12 years ago |
Martin Hasoň
|
81e8261692
|
Added tests for traits
|
13 years ago |
Benjamin Eberlei
|
671cd5ee08
|
Add tests for ClassMapGenerator
|
13 years ago |