Skip to content

PHP-Parser 2.1.1

Choose a tag to compare

@nikic nikic released this 16 Sep 12:06
· 1098 commits to master since this release

Changed

  • The pretty printer will now escape all control characters in the range \x00-\x1F inside double quoted strings. If no special escape sequence is available, an octal escape will be used.
  • The quality of the error recovery has been improved. In particular unterminated expressions should be handled more gracefully.
  • The PHP 7 parser will now generate a parse error for $var =& new Obj assignments.
  • Comments on free-standing code blocks will now be retained as comments on the first statement in the code block.