Community
Participate
Working Groups
Hi, the php parsers are not strict enough when looking for heredoc or nowdoc opening/closing markers. A closing marker should (of course) have same name than the opening marker, for example: <?php $a = <<< AAAA test AAAA; but PDT "only" checks that the closing marker name is a suffix of the opening marker name. For example, following code is seen a valid heredoc (but shouldn't): <?php $a = <<< AAAA test BAAAA; A more visible problem: <?php $a = <<< AAAA BAAAA; AAAA; "BAAAA;" will not be inside the heredoc section and "AAAA;" will not mark the end of the heredoc. Thierry.
New Gerrit change created: https://git.eclipse.org/r/131735
Gerrit change https://git.eclipse.org/r/131735 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=a7b044b3b388d34e20b62c7786fb0df45553efd1
Fixed.
New Gerrit change created: https://git.eclipse.org/r/131750
Gerrit change https://git.eclipse.org/r/131750 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=c12419142e6ec5c143636434968594e25d46e79b