Skip to content

Releases: glayzzle/php-parser

2.2.0 - Lastest release on 2.x

28 Dec 11:05
Compare
Choose a tag to compare

This release will be the latest on 2.x series, the future releases on 2.2.x branch will be only bugfixes, if you are using a <2.1.x you should consider using this lastest version as it contains a lot of bugfixes.

NOTE : The next 3.0 will be released soon (few days).

  • Impl #108 : add an option to disable PHP7 support
  • Fix #107 : fix T_DOUBLE_COLON handler
  • Fix #106 : infinite loops from lexer (unput)
  • Fix #105 : T_DOLLAR_OPEN_CURLY_BRACES handles now expressions
  • PR #102 : Normalize the way type casts are defined
  • Fix #103 : Fix critical cast to null confusion

2.1.0

01 Nov 10:34
Compare
Choose a tag to compare
  • Impl #91 & #92 : Functions support reserved names (PHP7)
  • Fix #89 : parsing methods can use Buffers or Strings

Bug-fixes

03 Sep 13:21
Compare
Choose a tag to compare
  • Fix #86 : bug on Object properties usage in PHP like __proto__, or constructor
  • Fix #84 : remove null statements from bodies

Precedence fixes

16 Jul 17:58
Compare
Choose a tag to compare
Precedence fixes Pre-release
Pre-release
  • Fix precedence between bin, retif, unary
  • Fix precedence with assign

2.0.4 - Fixes

09 Jul 22:45
Compare
Choose a tag to compare
  • Fix AST errors on suppressErrors
  • Add curly boolean on variable node (for ${bar} syntax)
  • Implement the static closure flag, ex: $c = static function() {};

2.0.0

04 Mar 20:36
Compare
Choose a tag to compare
  • Update AST for operators, unify bin/bool/coalesce nodes
  • Fix nested block usage on function bodies
  • Avoid initial $ on variables
  • Shell nodes are now exposed by encapsed nodes only
  • Typescript definition file
  • Avoid identifier nodes on namespaces & use statements
  • Fix precedence on bin, unary, retif nodes
  • Fix ending position on functions/methods/closures
  • Fix lexer unput at the end of the file (infinite loops)
  • Add encapsed node (type=offset) on dynamic offsets
  • Implement annonymous class arguments
  • Fix missing first char on encapsed T_STRING_VARNAME

1.0.0

03 Jan 11:43
Compare
Choose a tag to compare
  • All nodes are now converted to objects
  • Bruteforce tests are in a separate project
  • Improved tests with mocha
  • Many syntax fixes
  • Tests over a silent error mode
  • Release of a complete AST documentation

0.1.5

27 Dec 09:00
Compare
Choose a tag to compare

The 0.1.x version starts to be deprecated

  • Fix closure use token
  • Improve silent errors handler
  • Pass PHP7 tests
  • Update class, traits, interface declarations
  • Many syntax fixes

0.1.4

12 Dec 00:50
Compare
Choose a tag to compare
  • Move from static instances to instanciated objects in order to fully handle
    promises
  • Fix the silentLexer
  • Fix the debug output mode
  • Add positions on expr->set

bugfixes and php7 implementation

21 Jun 03:02
Compare
Choose a tag to compare
0.0.10

release 0.0.10