diff --git a/README.md b/README.md index 146a22d72..e9777f86e 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ T_ECHO T_CONSTANT_ENCAPSED_STRING ; [ [ 'string', '"Hello World"' ] ] ] ] ] ``` -https://tonicdev.com/57082d37ded58c1100e6a6f6/57082d37ded58c1100e6a6f7 +Try it online (demo) : +https://tonicdev.com/ichiriac/php-parser # Use it @@ -65,13 +66,14 @@ If you run into problems with a test, run it with the cli and add the `--debug` # Releases -Current version is under developpement, all tokens are not yet implemented, but consider that the lexer sucessfully pass the parsing of ZF2 and Laravel, and many aspects of php are implemented. +Current version is under developpement, but consider that the lexer sucessfully pass the parsing of ZF2, Laravel, Symfony, and many aspects of php5 and php7 are implemented. -* 0.0.9 : const (value as expr) bugfix -* 0.0.8 : all tokens are passed on ZF2 (many fixes) -* 0.0.7 : isset, unset, try, catch, finally, fix T_STATIC, fix T_NEW with a dynamic var name, improve tests -* 0.0.6 : Improve tests, implements arrays & new statements -* 0.0.5 : Implement traits +* 0.0.10 : bugfixes and php7 implementation +* 0.0.9 : const (value as expr) bugfix +* 0.0.8 : all tokens are passed on ZF2 (many fixes) +* 0.0.7 : isset, unset, try, catch, finally, fix T_STATIC, fix T_NEW with a dynamic var name, improve tests +* 0.0.6 : Improve tests, implements arrays & new statements +* 0.0.5 : Implement traits # Misc diff --git a/package.json b/package.json index d3c30eaa8..7cd0b01a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "php-parser", - "version": "0.0.9", + "version": "0.0.10", "description": "PHP parser", "main": "main.js", "scripts": { diff --git a/test/parser/function.parser b/test/parser/function.parser index 2b91533b0..a327445d5 100644 --- a/test/parser/function.parser +++ b/test/parser/function.parser @@ -1,6 +1,13 @@ Test function parser --PASS-- function aa($a, $b = MY_CONST, $c = A | B) { } +--PASS-- +function htmlspecialchars( + string $string, + int $flags = ENT_COMPAT | ENT_HTML401, + string $encoding = 'ini_get("default_charset")', + bool $double_encode = true +): string {} --FAIL-- function aa(); --PASS ??--