Skip to content

Commit e295388

Browse files
committed
Release php-ast 1.0.1
1 parent 85595cc commit e295388

File tree

3 files changed

+42
-41
lines changed

3 files changed

+42
-41
lines changed

ast_stub.php

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
const AST_PARAM_LIST = 136;
2020
const AST_CLOSURE_USES = 137;
2121
const AST_PROP_DECL = 138;
22-
const AST_PROP_GROUP = 767;
2322
const AST_CONST_DECL = 139;
2423
const AST_CLASS_CONST_DECL = 140;
2524
const AST_NAME_LIST = 141;
@@ -51,17 +50,18 @@
5150
const AST_POST_INC = 273;
5251
const AST_POST_DEC = 274;
5352
const AST_YIELD_FROM = 275;
54-
const AST_GLOBAL = 276;
55-
const AST_UNSET = 277;
56-
const AST_RETURN = 278;
57-
const AST_LABEL = 279;
58-
const AST_REF = 280;
59-
const AST_HALT_COMPILER = 281;
60-
const AST_ECHO = 282;
61-
const AST_THROW = 283;
62-
const AST_GOTO = 284;
63-
const AST_BREAK = 285;
64-
const AST_CONTINUE = 286;
53+
const AST_GLOBAL = 277;
54+
const AST_UNSET = 278;
55+
const AST_RETURN = 279;
56+
const AST_LABEL = 280;
57+
const AST_REF = 281;
58+
const AST_HALT_COMPILER = 282;
59+
const AST_ECHO = 283;
60+
const AST_THROW = 284;
61+
const AST_GOTO = 285;
62+
const AST_BREAK = 286;
63+
const AST_CONTINUE = 287;
64+
const AST_CLASS_NAME = 276;
6565
const AST_DIM = 512;
6666
const AST_PROP = 513;
6767
const AST_STATIC_PROP = 514;
@@ -75,22 +75,23 @@
7575
const AST_NEW = 526;
7676
const AST_INSTANCEOF = 527;
7777
const AST_YIELD = 528;
78-
const AST_STATIC = 530;
79-
const AST_WHILE = 531;
80-
const AST_DO_WHILE = 532;
81-
const AST_IF_ELEM = 533;
82-
const AST_SWITCH = 534;
83-
const AST_SWITCH_CASE = 535;
84-
const AST_DECLARE = 536;
78+
const AST_STATIC = 531;
79+
const AST_WHILE = 532;
80+
const AST_DO_WHILE = 533;
81+
const AST_IF_ELEM = 534;
82+
const AST_SWITCH = 535;
83+
const AST_SWITCH_CASE = 536;
84+
const AST_DECLARE = 537;
8585
const AST_PROP_ELEM = 774;
86+
const AST_PROP_GROUP = 545;
8687
const AST_CONST_ELEM = 775;
87-
const AST_USE_TRAIT = 537;
88-
const AST_TRAIT_PRECEDENCE = 538;
89-
const AST_METHOD_REFERENCE = 539;
90-
const AST_NAMESPACE = 540;
91-
const AST_USE_ELEM = 541;
92-
const AST_TRAIT_ALIAS = 542;
93-
const AST_GROUP_USE = 543;
88+
const AST_USE_TRAIT = 538;
89+
const AST_TRAIT_PRECEDENCE = 539;
90+
const AST_METHOD_REFERENCE = 540;
91+
const AST_NAMESPACE = 541;
92+
const AST_USE_ELEM = 542;
93+
const AST_TRAIT_ALIAS = 543;
94+
const AST_GROUP_USE = 544;
9495
const AST_METHOD_CALL = 768;
9596
const AST_STATIC_CALL = 769;
9697
const AST_CONDITIONAL = 770;
@@ -172,14 +173,14 @@
172173
const USE_NORMAL = 1;
173174
const USE_FUNCTION = 2;
174175
const USE_CONST = 4;
175-
const MAGIC_LINE = 370;
176-
const MAGIC_FILE = 371;
177-
const MAGIC_DIR = 372;
178-
const MAGIC_NAMESPACE = 389;
179-
const MAGIC_FUNCTION = 376;
180-
const MAGIC_METHOD = 375;
181-
const MAGIC_CLASS = 373;
182-
const MAGIC_TRAIT = 374;
176+
const MAGIC_LINE = 371;
177+
const MAGIC_FILE = 372;
178+
const MAGIC_DIR = 373;
179+
const MAGIC_NAMESPACE = 390;
180+
const MAGIC_FUNCTION = 377;
181+
const MAGIC_METHOD = 376;
182+
const MAGIC_CLASS = 374;
183+
const MAGIC_TRAIT = 375;
183184
const ARRAY_SYNTAX_LIST = 1;
184185
const ARRAY_SYNTAX_LONG = 2;
185186
const ARRAY_SYNTAX_SHORT = 3;

package.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
<email>[email protected]</email>
1313
<active>yes</active>
1414
</lead>
15-
<date>2018-10-21</date>
15+
<date>2019-02-11</date>
1616
<version>
17-
<release>1.0.1dev</release>
18-
<api>1.0.1dev</api>
17+
<release>1.0.1</release>
18+
<api>1.0.1</api>
1919
</version>
2020
<stability>
2121
<release>stable</release>
2222
<api>stable</api>
2323
</stability>
2424
<license uri="https://github.com/nikic/php-ast/blob/master/LICENSE">BSD-3-Clause</license>
2525
<notes>
26-
- Fix a segfault in PHP 7.4-dev. This crash started after typed properties support was added to PHP 7.4-dev.
27-
- Support BINARY_COALESCE as a flag of AST_ASSIGN_OP for the `??=` operator in PHP 7.4-dev.
26+
- Fix compatibility with (currenty) PHP 7.4 and PHP 8.0.
27+
- Support BINARY_COALESCE as a flag of AST_ASSIGN_OP for the `??=` operator added in PHP 7.4.
2828
- Add AST version 70 (experimental):
2929
- Version 70 adds AST_PROP_GROUP with type information for property groups.
30-
- Version 70 adds AST_CLASS_CONST for `Foo::class`
30+
- Version 70 adds AST_CLASS_NAME for `Foo::class`. Previously this used AST_CLASS_CONST
3131
</notes>
3232
<contents>
3333
<dir name="/">

php_ast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
extern zend_module_entry ast_module_entry;
88
#define phpext_ast_ptr &ast_module_entry
99

10-
#define PHP_AST_VERSION "1.0.1dev"
10+
#define PHP_AST_VERSION "1.0.1"
1111

1212
#ifdef PHP_WIN32
1313
# define PHP_AST_API __declspec(dllexport)

0 commit comments

Comments
 (0)