summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--REFLECTION420
-rw-r--r--composer.json12
-rw-r--r--php-ast.spec38
3 files changed, 244 insertions, 226 deletions
diff --git a/REFLECTION b/REFLECTION
index a01fe43..6a1ac9e 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,215 +1,215 @@
-Extension [ <persistent> extension #69 ast version 1.1.3 ] {
+Extension [ <persistent> extension #67 ast version 1.1.3 ] {
- Constants [209] {
- Constant [ int ast\AST_ARG_LIST ] { 128 }
- Constant [ int ast\AST_LIST ] { 255 }
- Constant [ int ast\AST_ARRAY ] { 129 }
- Constant [ int ast\AST_ENCAPS_LIST ] { 130 }
- Constant [ int ast\AST_EXPR_LIST ] { 131 }
- Constant [ int ast\AST_STMT_LIST ] { 132 }
- Constant [ int ast\AST_IF ] { 133 }
- Constant [ int ast\AST_SWITCH_LIST ] { 134 }
- Constant [ int ast\AST_CATCH_LIST ] { 135 }
- Constant [ int ast\AST_PARAM_LIST ] { 136 }
- Constant [ int ast\AST_CLOSURE_USES ] { 137 }
- Constant [ int ast\AST_PROP_DECL ] { 138 }
- Constant [ int ast\AST_CONST_DECL ] { 139 }
- Constant [ int ast\AST_CLASS_CONST_DECL ] { 140 }
- Constant [ int ast\AST_NAME_LIST ] { 141 }
- Constant [ int ast\AST_TRAIT_ADAPTATIONS ] { 142 }
- Constant [ int ast\AST_USE ] { 143 }
- Constant [ int ast\AST_TYPE_UNION ] { 144 }
- Constant [ int ast\AST_TYPE_INTERSECTION ] { 145 }
- Constant [ int ast\AST_ATTRIBUTE_LIST ] { 146 }
- Constant [ int ast\AST_ATTRIBUTE_GROUP ] { 147 }
- Constant [ int ast\AST_MATCH_ARM_LIST ] { 148 }
- Constant [ int ast\AST_NAME ] { 2048 }
- Constant [ int ast\AST_CLOSURE_VAR ] { 2049 }
- Constant [ int ast\AST_NULLABLE_TYPE ] { 2050 }
- Constant [ int ast\AST_FUNC_DECL ] { 67 }
- Constant [ int ast\AST_CLOSURE ] { 68 }
- Constant [ int ast\AST_METHOD ] { 69 }
- Constant [ int ast\AST_ARROW_FUNC ] { 71 }
- Constant [ int ast\AST_CLASS ] { 70 }
- Constant [ int ast\AST_PROPERTY_HOOK ] { 127 }
- Constant [ int ast\AST_MAGIC_CONST ] { 0 }
- Constant [ int ast\AST_TYPE ] { 1 }
- Constant [ int ast\AST_CALLABLE_CONVERT ] { 3 }
- Constant [ int ast\AST_VAR ] { 256 }
- Constant [ int ast\AST_CONST ] { 257 }
- Constant [ int ast\AST_UNPACK ] { 258 }
- Constant [ int ast\AST_CAST ] { 261 }
- Constant [ int ast\AST_EMPTY ] { 262 }
- Constant [ int ast\AST_ISSET ] { 263 }
- Constant [ int ast\AST_SHELL_EXEC ] { 265 }
- Constant [ int ast\AST_CLONE ] { 266 }
- Constant [ int ast\AST_EXIT ] { 267 }
- Constant [ int ast\AST_PRINT ] { 268 }
- Constant [ int ast\AST_INCLUDE_OR_EVAL ] { 269 }
- Constant [ int ast\AST_UNARY_OP ] { 270 }
- Constant [ int ast\AST_PRE_INC ] { 271 }
- Constant [ int ast\AST_PRE_DEC ] { 272 }
- Constant [ int ast\AST_POST_INC ] { 273 }
- Constant [ int ast\AST_POST_DEC ] { 274 }
- Constant [ int ast\AST_YIELD_FROM ] { 275 }
- Constant [ int ast\AST_GLOBAL ] { 277 }
- Constant [ int ast\AST_UNSET ] { 278 }
- Constant [ int ast\AST_RETURN ] { 279 }
- Constant [ int ast\AST_LABEL ] { 280 }
- Constant [ int ast\AST_REF ] { 281 }
- Constant [ int ast\AST_HALT_COMPILER ] { 282 }
- Constant [ int ast\AST_ECHO ] { 283 }
- Constant [ int ast\AST_THROW ] { 284 }
- Constant [ int ast\AST_GOTO ] { 285 }
- Constant [ int ast\AST_BREAK ] { 286 }
- Constant [ int ast\AST_CONTINUE ] { 287 }
- Constant [ int ast\AST_CLASS_NAME ] { 276 }
- Constant [ int ast\AST_PROPERTY_HOOK_SHORT_BODY ] { 510 }
- Constant [ int ast\AST_CLASS_CONST_GROUP ] { 777 }
- Constant [ int ast\AST_DIM ] { 512 }
- Constant [ int ast\AST_PROP ] { 513 }
- Constant [ int ast\AST_NULLSAFE_PROP ] { 514 }
- Constant [ int ast\AST_STATIC_PROP ] { 515 }
- Constant [ int ast\AST_CALL ] { 516 }
- Constant [ int ast\AST_CLASS_CONST ] { 517 }
- Constant [ int ast\AST_ASSIGN ] { 518 }
- Constant [ int ast\AST_ASSIGN_REF ] { 519 }
- Constant [ int ast\AST_ASSIGN_OP ] { 520 }
- Constant [ int ast\AST_BINARY_OP ] { 521 }
- Constant [ int ast\AST_ARRAY_ELEM ] { 526 }
- Constant [ int ast\AST_NEW ] { 527 }
- Constant [ int ast\AST_INSTANCEOF ] { 528 }
- Constant [ int ast\AST_YIELD ] { 529 }
- Constant [ int ast\AST_STATIC ] { 532 }
- Constant [ int ast\AST_WHILE ] { 533 }
- Constant [ int ast\AST_DO_WHILE ] { 534 }
- Constant [ int ast\AST_IF_ELEM ] { 535 }
- Constant [ int ast\AST_SWITCH ] { 536 }
- Constant [ int ast\AST_SWITCH_CASE ] { 537 }
- Constant [ int ast\AST_DECLARE ] { 538 }
- Constant [ int ast\AST_PROP_ELEM ] { 775 }
- Constant [ int ast\AST_PROP_GROUP ] { 774 }
- Constant [ int ast\AST_CONST_ELEM ] { 776 }
- Constant [ int ast\AST_USE_TRAIT ] { 539 }
- Constant [ int ast\AST_TRAIT_PRECEDENCE ] { 540 }
- Constant [ int ast\AST_METHOD_REFERENCE ] { 541 }
- Constant [ int ast\AST_NAMESPACE ] { 542 }
- Constant [ int ast\AST_USE_ELEM ] { 543 }
- Constant [ int ast\AST_TRAIT_ALIAS ] { 544 }
- Constant [ int ast\AST_GROUP_USE ] { 545 }
- Constant [ int ast\AST_ATTRIBUTE ] { 546 }
- Constant [ int ast\AST_MATCH ] { 547 }
- Constant [ int ast\AST_MATCH_ARM ] { 548 }
- Constant [ int ast\AST_NAMED_ARG ] { 549 }
- Constant [ int ast\AST_METHOD_CALL ] { 768 }
- Constant [ int ast\AST_NULLSAFE_METHOD_CALL ] { 769 }
- Constant [ int ast\AST_STATIC_CALL ] { 770 }
- Constant [ int ast\AST_CONDITIONAL ] { 771 }
- Constant [ int ast\AST_TRY ] { 772 }
- Constant [ int ast\AST_CATCH ] { 773 }
- Constant [ int ast\AST_FOR ] { 1024 }
- Constant [ int ast\AST_FOREACH ] { 1025 }
- Constant [ int ast\AST_ENUM_CASE ] { 1026 }
- Constant [ int ast\AST_PARAM ] { 1280 }
- Constant [ int ast\flags\NAME_FQ ] { 0 }
- Constant [ int ast\flags\NAME_NOT_FQ ] { 1 }
- Constant [ int ast\flags\NAME_RELATIVE ] { 2 }
- Constant [ int ast\flags\MODIFIER_PUBLIC ] { 1 }
- Constant [ int ast\flags\MODIFIER_PROTECTED ] { 2 }
- Constant [ int ast\flags\MODIFIER_PRIVATE ] { 4 }
- Constant [ int ast\flags\MODIFIER_STATIC ] { 16 }
- Constant [ int ast\flags\MODIFIER_ABSTRACT ] { 64 }
- Constant [ int ast\flags\MODIFIER_FINAL ] { 32 }
- Constant [ int ast\flags\MODIFIER_READONLY ] { 128 }
- Constant [ int ast\flags\MODIFIER_PUBLIC_SET ] { 2048 }
- Constant [ int ast\flags\MODIFIER_PROTECTED_SET ] { 4096 }
- Constant [ int ast\flags\MODIFIER_PRIVATE_SET ] { 8192 }
- Constant [ int ast\flags\PARAM_MODIFIER_PUBLIC ] { 1 }
- Constant [ int ast\flags\PARAM_MODIFIER_PROTECTED ] { 2 }
- Constant [ int ast\flags\PARAM_MODIFIER_PRIVATE ] { 4 }
- Constant [ int ast\flags\RETURNS_REF ] { 4096 }
- Constant [ int ast\flags\FUNC_RETURNS_REF ] { 4096 }
- Constant [ int ast\flags\FUNC_GENERATOR ] { 16777216 }
- Constant [ int ast\flags\ARRAY_ELEM_REF ] { 1 }
- Constant [ int ast\flags\CLOSURE_USE_REF ] { 1 }
- Constant [ int ast\flags\CLASS_ABSTRACT ] { 64 }
- Constant [ int ast\flags\CLASS_FINAL ] { 32 }
- Constant [ int ast\flags\CLASS_TRAIT ] { 2 }
- Constant [ int ast\flags\CLASS_INTERFACE ] { 1 }
- Constant [ int ast\flags\CLASS_ANONYMOUS ] { 4 }
- Constant [ int ast\flags\CLASS_ENUM ] { 268435456 }
- Constant [ int ast\flags\CLASS_READONLY ] { 65536 }
- Constant [ int ast\flags\PARAM_REF ] { 8 }
- Constant [ int ast\flags\PARAM_VARIADIC ] { 16 }
- Constant [ int ast\flags\TYPE_NULL ] { 1 }
- Constant [ int ast\flags\TYPE_FALSE ] { 2 }
- Constant [ int ast\flags\TYPE_TRUE ] { 3 }
- Constant [ int ast\flags\TYPE_BOOL ] { 18 }
- Constant [ int ast\flags\TYPE_LONG ] { 4 }
- Constant [ int ast\flags\TYPE_DOUBLE ] { 5 }
- Constant [ int ast\flags\TYPE_STRING ] { 6 }
- Constant [ int ast\flags\TYPE_ARRAY ] { 7 }
- Constant [ int ast\flags\TYPE_OBJECT ] { 8 }
- Constant [ int ast\flags\TYPE_CALLABLE ] { 12 }
- Constant [ int ast\flags\TYPE_VOID ] { 14 }
- Constant [ int ast\flags\TYPE_ITERABLE ] { 13 }
- Constant [ int ast\flags\TYPE_STATIC ] { 15 }
- Constant [ int ast\flags\TYPE_MIXED ] { 16 }
- Constant [ int ast\flags\TYPE_NEVER ] { 17 }
- Constant [ int ast\flags\UNARY_BOOL_NOT ] { 14 }
- Constant [ int ast\flags\UNARY_BITWISE_NOT ] { 13 }
- Constant [ int ast\flags\UNARY_SILENCE ] { 260 }
- Constant [ int ast\flags\UNARY_PLUS ] { 261 }
- Constant [ int ast\flags\UNARY_MINUS ] { 262 }
- Constant [ int ast\flags\BINARY_BOOL_AND ] { 259 }
- Constant [ int ast\flags\BINARY_BOOL_OR ] { 258 }
- Constant [ int ast\flags\BINARY_BOOL_XOR ] { 15 }
- Constant [ int ast\flags\BINARY_BITWISE_OR ] { 9 }
- Constant [ int ast\flags\BINARY_BITWISE_AND ] { 10 }
- Constant [ int ast\flags\BINARY_BITWISE_XOR ] { 11 }
- Constant [ int ast\flags\BINARY_CONCAT ] { 8 }
- Constant [ int ast\flags\BINARY_ADD ] { 1 }
- Constant [ int ast\flags\BINARY_SUB ] { 2 }
- Constant [ int ast\flags\BINARY_MUL ] { 3 }
- Constant [ int ast\flags\BINARY_DIV ] { 4 }
- Constant [ int ast\flags\BINARY_MOD ] { 5 }
- Constant [ int ast\flags\BINARY_POW ] { 12 }
- Constant [ int ast\flags\BINARY_SHIFT_LEFT ] { 6 }
- Constant [ int ast\flags\BINARY_SHIFT_RIGHT ] { 7 }
- Constant [ int ast\flags\BINARY_IS_IDENTICAL ] { 16 }
- Constant [ int ast\flags\BINARY_IS_NOT_IDENTICAL ] { 17 }
- Constant [ int ast\flags\BINARY_IS_EQUAL ] { 18 }
- Constant [ int ast\flags\BINARY_IS_NOT_EQUAL ] { 19 }
- Constant [ int ast\flags\BINARY_IS_SMALLER ] { 20 }
- Constant [ int ast\flags\BINARY_IS_SMALLER_OR_EQUAL ] { 21 }
- Constant [ int ast\flags\BINARY_IS_GREATER ] { 256 }
- Constant [ int ast\flags\BINARY_IS_GREATER_OR_EQUAL ] { 257 }
- Constant [ int ast\flags\BINARY_SPACESHIP ] { 170 }
- Constant [ int ast\flags\BINARY_COALESCE ] { 260 }
- Constant [ int ast\flags\BINARY_PIPE ] { 261 }
- Constant [ int ast\flags\EXEC_EVAL ] { 1 }
- Constant [ int ast\flags\EXEC_INCLUDE ] { 2 }
- Constant [ int ast\flags\EXEC_INCLUDE_ONCE ] { 4 }
- Constant [ int ast\flags\EXEC_REQUIRE ] { 8 }
- Constant [ int ast\flags\EXEC_REQUIRE_ONCE ] { 16 }
- Constant [ int ast\flags\USE_NORMAL ] { 1 }
- Constant [ int ast\flags\USE_FUNCTION ] { 2 }
- Constant [ int ast\flags\USE_CONST ] { 4 }
- Constant [ int ast\flags\MAGIC_LINE ] { 343 }
- Constant [ int ast\flags\MAGIC_FILE ] { 344 }
- Constant [ int ast\flags\MAGIC_DIR ] { 345 }
- Constant [ int ast\flags\MAGIC_NAMESPACE ] { 350 }
- Constant [ int ast\flags\MAGIC_FUNCTION ] { 349 }
- Constant [ int ast\flags\MAGIC_METHOD ] { 348 }
- Constant [ int ast\flags\MAGIC_CLASS ] { 346 }
- Constant [ int ast\flags\MAGIC_TRAIT ] { 347 }
- Constant [ int ast\flags\ARRAY_SYNTAX_LIST ] { 1 }
- Constant [ int ast\flags\ARRAY_SYNTAX_LONG ] { 2 }
- Constant [ int ast\flags\ARRAY_SYNTAX_SHORT ] { 3 }
- Constant [ int ast\flags\DIM_ALTERNATIVE_SYNTAX ] { 2 }
- Constant [ int ast\flags\PARENTHESIZED_CONDITIONAL ] { 1 }
- Constant [ int ast\flags\ENCAPS_VAR_DOLLAR_CURLY ] { 1 }
- Constant [ int ast\flags\ENCAPS_VAR_DOLLAR_CURLY_VAR_VAR ] { 2 }
+ Constant [ <persistent> int ast\AST_ARG_LIST ] { 128 }
+ Constant [ <persistent> int ast\AST_LIST ] { 255 }
+ Constant [ <persistent> int ast\AST_ARRAY ] { 129 }
+ Constant [ <persistent> int ast\AST_ENCAPS_LIST ] { 130 }
+ Constant [ <persistent> int ast\AST_EXPR_LIST ] { 131 }
+ Constant [ <persistent> int ast\AST_STMT_LIST ] { 132 }
+ Constant [ <persistent> int ast\AST_IF ] { 133 }
+ Constant [ <persistent> int ast\AST_SWITCH_LIST ] { 134 }
+ Constant [ <persistent> int ast\AST_CATCH_LIST ] { 135 }
+ Constant [ <persistent> int ast\AST_PARAM_LIST ] { 136 }
+ Constant [ <persistent> int ast\AST_CLOSURE_USES ] { 137 }
+ Constant [ <persistent> int ast\AST_PROP_DECL ] { 138 }
+ Constant [ <persistent> int ast\AST_CONST_DECL ] { 139 }
+ Constant [ <persistent> int ast\AST_CLASS_CONST_DECL ] { 140 }
+ Constant [ <persistent> int ast\AST_NAME_LIST ] { 141 }
+ Constant [ <persistent> int ast\AST_TRAIT_ADAPTATIONS ] { 142 }
+ Constant [ <persistent> int ast\AST_USE ] { 143 }
+ Constant [ <persistent> int ast\AST_TYPE_UNION ] { 144 }
+ Constant [ <persistent> int ast\AST_TYPE_INTERSECTION ] { 145 }
+ Constant [ <persistent> int ast\AST_ATTRIBUTE_LIST ] { 146 }
+ Constant [ <persistent> int ast\AST_ATTRIBUTE_GROUP ] { 147 }
+ Constant [ <persistent> int ast\AST_MATCH_ARM_LIST ] { 148 }
+ Constant [ <persistent> int ast\AST_NAME ] { 2048 }
+ Constant [ <persistent> int ast\AST_CLOSURE_VAR ] { 2049 }
+ Constant [ <persistent> int ast\AST_NULLABLE_TYPE ] { 2050 }
+ Constant [ <persistent> int ast\AST_FUNC_DECL ] { 67 }
+ Constant [ <persistent> int ast\AST_CLOSURE ] { 68 }
+ Constant [ <persistent> int ast\AST_METHOD ] { 69 }
+ Constant [ <persistent> int ast\AST_ARROW_FUNC ] { 71 }
+ Constant [ <persistent> int ast\AST_CLASS ] { 70 }
+ Constant [ <persistent> int ast\AST_PROPERTY_HOOK ] { 72 }
+ Constant [ <persistent> int ast\AST_MAGIC_CONST ] { 0 }
+ Constant [ <persistent> int ast\AST_TYPE ] { 1 }
+ Constant [ <persistent> int ast\AST_CALLABLE_CONVERT ] { 3 }
+ Constant [ <persistent> int ast\AST_VAR ] { 256 }
+ Constant [ <persistent> int ast\AST_CONST ] { 257 }
+ Constant [ <persistent> int ast\AST_UNPACK ] { 258 }
+ Constant [ <persistent> int ast\AST_CAST ] { 261 }
+ Constant [ <persistent> int ast\AST_EMPTY ] { 262 }
+ Constant [ <persistent> int ast\AST_ISSET ] { 263 }
+ Constant [ <persistent> int ast\AST_SHELL_EXEC ] { 265 }
+ Constant [ <persistent> int ast\AST_CLONE ] { 266 }
+ Constant [ <persistent> int ast\AST_EXIT ] { 267 }
+ Constant [ <persistent> int ast\AST_PRINT ] { 268 }
+ Constant [ <persistent> int ast\AST_INCLUDE_OR_EVAL ] { 269 }
+ Constant [ <persistent> int ast\AST_UNARY_OP ] { 270 }
+ Constant [ <persistent> int ast\AST_PRE_INC ] { 271 }
+ Constant [ <persistent> int ast\AST_PRE_DEC ] { 272 }
+ Constant [ <persistent> int ast\AST_POST_INC ] { 273 }
+ Constant [ <persistent> int ast\AST_POST_DEC ] { 274 }
+ Constant [ <persistent> int ast\AST_YIELD_FROM ] { 275 }
+ Constant [ <persistent> int ast\AST_GLOBAL ] { 277 }
+ Constant [ <persistent> int ast\AST_UNSET ] { 278 }
+ Constant [ <persistent> int ast\AST_RETURN ] { 279 }
+ Constant [ <persistent> int ast\AST_LABEL ] { 280 }
+ Constant [ <persistent> int ast\AST_REF ] { 281 }
+ Constant [ <persistent> int ast\AST_HALT_COMPILER ] { 282 }
+ Constant [ <persistent> int ast\AST_ECHO ] { 283 }
+ Constant [ <persistent> int ast\AST_THROW ] { 284 }
+ Constant [ <persistent> int ast\AST_GOTO ] { 285 }
+ Constant [ <persistent> int ast\AST_BREAK ] { 286 }
+ Constant [ <persistent> int ast\AST_CONTINUE ] { 287 }
+ Constant [ <persistent> int ast\AST_CLASS_NAME ] { 276 }
+ Constant [ <persistent> int ast\AST_PROPERTY_HOOK_SHORT_BODY ] { 288 }
+ Constant [ <persistent> int ast\AST_CLASS_CONST_GROUP ] { 776 }
+ Constant [ <persistent> int ast\AST_DIM ] { 512 }
+ Constant [ <persistent> int ast\AST_PROP ] { 513 }
+ Constant [ <persistent> int ast\AST_NULLSAFE_PROP ] { 514 }
+ Constant [ <persistent> int ast\AST_STATIC_PROP ] { 515 }
+ Constant [ <persistent> int ast\AST_CALL ] { 516 }
+ Constant [ <persistent> int ast\AST_CLASS_CONST ] { 517 }
+ Constant [ <persistent> int ast\AST_ASSIGN ] { 518 }
+ Constant [ <persistent> int ast\AST_ASSIGN_REF ] { 519 }
+ Constant [ <persistent> int ast\AST_ASSIGN_OP ] { 520 }
+ Constant [ <persistent> int ast\AST_BINARY_OP ] { 521 }
+ Constant [ <persistent> int ast\AST_ARRAY_ELEM ] { 526 }
+ Constant [ <persistent> int ast\AST_NEW ] { 527 }
+ Constant [ <persistent> int ast\AST_INSTANCEOF ] { 528 }
+ Constant [ <persistent> int ast\AST_YIELD ] { 529 }
+ Constant [ <persistent> int ast\AST_STATIC ] { 532 }
+ Constant [ <persistent> int ast\AST_WHILE ] { 533 }
+ Constant [ <persistent> int ast\AST_DO_WHILE ] { 534 }
+ Constant [ <persistent> int ast\AST_IF_ELEM ] { 535 }
+ Constant [ <persistent> int ast\AST_SWITCH ] { 536 }
+ Constant [ <persistent> int ast\AST_SWITCH_CASE ] { 537 }
+ Constant [ <persistent> int ast\AST_DECLARE ] { 538 }
+ Constant [ <persistent> int ast\AST_PROP_ELEM ] { 1027 }
+ Constant [ <persistent> int ast\AST_PROP_GROUP ] { 774 }
+ Constant [ <persistent> int ast\AST_CONST_ELEM ] { 775 }
+ Constant [ <persistent> int ast\AST_USE_TRAIT ] { 539 }
+ Constant [ <persistent> int ast\AST_TRAIT_PRECEDENCE ] { 540 }
+ Constant [ <persistent> int ast\AST_METHOD_REFERENCE ] { 541 }
+ Constant [ <persistent> int ast\AST_NAMESPACE ] { 542 }
+ Constant [ <persistent> int ast\AST_USE_ELEM ] { 543 }
+ Constant [ <persistent> int ast\AST_TRAIT_ALIAS ] { 544 }
+ Constant [ <persistent> int ast\AST_GROUP_USE ] { 545 }
+ Constant [ <persistent> int ast\AST_ATTRIBUTE ] { 546 }
+ Constant [ <persistent> int ast\AST_MATCH ] { 547 }
+ Constant [ <persistent> int ast\AST_MATCH_ARM ] { 548 }
+ Constant [ <persistent> int ast\AST_NAMED_ARG ] { 549 }
+ Constant [ <persistent> int ast\AST_METHOD_CALL ] { 768 }
+ Constant [ <persistent> int ast\AST_NULLSAFE_METHOD_CALL ] { 769 }
+ Constant [ <persistent> int ast\AST_STATIC_CALL ] { 770 }
+ Constant [ <persistent> int ast\AST_CONDITIONAL ] { 771 }
+ Constant [ <persistent> int ast\AST_TRY ] { 772 }
+ Constant [ <persistent> int ast\AST_CATCH ] { 773 }
+ Constant [ <persistent> int ast\AST_FOR ] { 1024 }
+ Constant [ <persistent> int ast\AST_FOREACH ] { 1025 }
+ Constant [ <persistent> int ast\AST_ENUM_CASE ] { 1026 }
+ Constant [ <persistent> int ast\AST_PARAM ] { 1536 }
+ Constant [ <persistent> int ast\flags\NAME_FQ ] { 0 }
+ Constant [ <persistent> int ast\flags\NAME_NOT_FQ ] { 1 }
+ Constant [ <persistent> int ast\flags\NAME_RELATIVE ] { 2 }
+ Constant [ <persistent> int ast\flags\MODIFIER_PUBLIC ] { 1 }
+ Constant [ <persistent> int ast\flags\MODIFIER_PROTECTED ] { 2 }
+ Constant [ <persistent> int ast\flags\MODIFIER_PRIVATE ] { 4 }
+ Constant [ <persistent> int ast\flags\MODIFIER_STATIC ] { 16 }
+ Constant [ <persistent> int ast\flags\MODIFIER_ABSTRACT ] { 64 }
+ Constant [ <persistent> int ast\flags\MODIFIER_FINAL ] { 32 }
+ Constant [ <persistent> int ast\flags\MODIFIER_READONLY ] { 128 }
+ Constant [ <persistent> int ast\flags\MODIFIER_PUBLIC_SET ] { 1024 }
+ Constant [ <persistent> int ast\flags\MODIFIER_PROTECTED_SET ] { 2048 }
+ Constant [ <persistent> int ast\flags\MODIFIER_PRIVATE_SET ] { 4096 }
+ Constant [ <persistent> int ast\flags\PARAM_MODIFIER_PUBLIC ] { 1 }
+ Constant [ <persistent> int ast\flags\PARAM_MODIFIER_PROTECTED ] { 2 }
+ Constant [ <persistent> int ast\flags\PARAM_MODIFIER_PRIVATE ] { 4 }
+ Constant [ <persistent> int ast\flags\RETURNS_REF ] { 4096 }
+ Constant [ <persistent> int ast\flags\FUNC_RETURNS_REF ] { 4096 }
+ Constant [ <persistent> int ast\flags\FUNC_GENERATOR ] { 16777216 }
+ Constant [ <persistent> int ast\flags\ARRAY_ELEM_REF ] { 1 }
+ Constant [ <persistent> int ast\flags\CLOSURE_USE_REF ] { 1 }
+ Constant [ <persistent> int ast\flags\CLASS_ABSTRACT ] { 64 }
+ Constant [ <persistent> int ast\flags\CLASS_FINAL ] { 32 }
+ Constant [ <persistent> int ast\flags\CLASS_TRAIT ] { 2 }
+ Constant [ <persistent> int ast\flags\CLASS_INTERFACE ] { 1 }
+ Constant [ <persistent> int ast\flags\CLASS_ANONYMOUS ] { 4 }
+ Constant [ <persistent> int ast\flags\CLASS_ENUM ] { 268435456 }
+ Constant [ <persistent> int ast\flags\CLASS_READONLY ] { 65536 }
+ Constant [ <persistent> int ast\flags\PARAM_REF ] { 8 }
+ Constant [ <persistent> int ast\flags\PARAM_VARIADIC ] { 16 }
+ Constant [ <persistent> int ast\flags\TYPE_NULL ] { 1 }
+ Constant [ <persistent> int ast\flags\TYPE_FALSE ] { 2 }
+ Constant [ <persistent> int ast\flags\TYPE_TRUE ] { 3 }
+ Constant [ <persistent> int ast\flags\TYPE_BOOL ] { 18 }
+ Constant [ <persistent> int ast\flags\TYPE_LONG ] { 4 }
+ Constant [ <persistent> int ast\flags\TYPE_DOUBLE ] { 5 }
+ Constant [ <persistent> int ast\flags\TYPE_STRING ] { 6 }
+ Constant [ <persistent> int ast\flags\TYPE_ARRAY ] { 7 }
+ Constant [ <persistent> int ast\flags\TYPE_OBJECT ] { 8 }
+ Constant [ <persistent> int ast\flags\TYPE_CALLABLE ] { 12 }
+ Constant [ <persistent> int ast\flags\TYPE_VOID ] { 14 }
+ Constant [ <persistent> int ast\flags\TYPE_ITERABLE ] { 13 }
+ Constant [ <persistent> int ast\flags\TYPE_STATIC ] { 15 }
+ Constant [ <persistent> int ast\flags\TYPE_MIXED ] { 16 }
+ Constant [ <persistent> int ast\flags\TYPE_NEVER ] { 17 }
+ Constant [ <persistent> int ast\flags\UNARY_BOOL_NOT ] { 14 }
+ Constant [ <persistent> int ast\flags\UNARY_BITWISE_NOT ] { 13 }
+ Constant [ <persistent> int ast\flags\UNARY_SILENCE ] { 260 }
+ Constant [ <persistent> int ast\flags\UNARY_PLUS ] { 261 }
+ Constant [ <persistent> int ast\flags\UNARY_MINUS ] { 262 }
+ Constant [ <persistent> int ast\flags\BINARY_BOOL_AND ] { 259 }
+ Constant [ <persistent> int ast\flags\BINARY_BOOL_OR ] { 258 }
+ Constant [ <persistent> int ast\flags\BINARY_BOOL_XOR ] { 15 }
+ Constant [ <persistent> int ast\flags\BINARY_BITWISE_OR ] { 9 }
+ Constant [ <persistent> int ast\flags\BINARY_BITWISE_AND ] { 10 }
+ Constant [ <persistent> int ast\flags\BINARY_BITWISE_XOR ] { 11 }
+ Constant [ <persistent> int ast\flags\BINARY_CONCAT ] { 8 }
+ Constant [ <persistent> int ast\flags\BINARY_ADD ] { 1 }
+ Constant [ <persistent> int ast\flags\BINARY_SUB ] { 2 }
+ Constant [ <persistent> int ast\flags\BINARY_MUL ] { 3 }
+ Constant [ <persistent> int ast\flags\BINARY_DIV ] { 4 }
+ Constant [ <persistent> int ast\flags\BINARY_MOD ] { 5 }
+ Constant [ <persistent> int ast\flags\BINARY_POW ] { 12 }
+ Constant [ <persistent> int ast\flags\BINARY_SHIFT_LEFT ] { 6 }
+ Constant [ <persistent> int ast\flags\BINARY_SHIFT_RIGHT ] { 7 }
+ Constant [ <persistent> int ast\flags\BINARY_IS_IDENTICAL ] { 16 }
+ Constant [ <persistent> int ast\flags\BINARY_IS_NOT_IDENTICAL ] { 17 }
+ Constant [ <persistent> int ast\flags\BINARY_IS_EQUAL ] { 18 }
+ Constant [ <persistent> int ast\flags\BINARY_IS_NOT_EQUAL ] { 19 }
+ Constant [ <persistent> int ast\flags\BINARY_IS_SMALLER ] { 20 }
+ Constant [ <persistent> int ast\flags\BINARY_IS_SMALLER_OR_EQUAL ] { 21 }
+ Constant [ <persistent> int ast\flags\BINARY_IS_GREATER ] { 256 }
+ Constant [ <persistent> int ast\flags\BINARY_IS_GREATER_OR_EQUAL ] { 257 }
+ Constant [ <persistent> int ast\flags\BINARY_SPACESHIP ] { 170 }
+ Constant [ <persistent> int ast\flags\BINARY_COALESCE ] { 260 }
+ Constant [ <persistent> int ast\flags\BINARY_PIPE ] { 261 }
+ Constant [ <persistent> int ast\flags\EXEC_EVAL ] { 1 }
+ Constant [ <persistent> int ast\flags\EXEC_INCLUDE ] { 2 }
+ Constant [ <persistent> int ast\flags\EXEC_INCLUDE_ONCE ] { 4 }
+ Constant [ <persistent> int ast\flags\EXEC_REQUIRE ] { 8 }
+ Constant [ <persistent> int ast\flags\EXEC_REQUIRE_ONCE ] { 16 }
+ Constant [ <persistent> int ast\flags\USE_NORMAL ] { 1 }
+ Constant [ <persistent> int ast\flags\USE_FUNCTION ] { 2 }
+ Constant [ <persistent> int ast\flags\USE_CONST ] { 4 }
+ Constant [ <persistent> int ast\flags\MAGIC_LINE ] { 346 }
+ Constant [ <persistent> int ast\flags\MAGIC_FILE ] { 347 }
+ Constant [ <persistent> int ast\flags\MAGIC_DIR ] { 348 }
+ Constant [ <persistent> int ast\flags\MAGIC_NAMESPACE ] { 354 }
+ Constant [ <persistent> int ast\flags\MAGIC_FUNCTION ] { 352 }
+ Constant [ <persistent> int ast\flags\MAGIC_METHOD ] { 351 }
+ Constant [ <persistent> int ast\flags\MAGIC_CLASS ] { 349 }
+ Constant [ <persistent> int ast\flags\MAGIC_TRAIT ] { 350 }
+ Constant [ <persistent> int ast\flags\ARRAY_SYNTAX_LIST ] { 1 }
+ Constant [ <persistent> int ast\flags\ARRAY_SYNTAX_LONG ] { 2 }
+ Constant [ <persistent> int ast\flags\ARRAY_SYNTAX_SHORT ] { 3 }
+ Constant [ <persistent> int ast\flags\DIM_ALTERNATIVE_SYNTAX ] { 2 }
+ Constant [ <persistent> int ast\flags\PARENTHESIZED_CONDITIONAL ] { 1 }
+ Constant [ <persistent> int ast\flags\ENCAPS_VAR_DOLLAR_CURLY ] { 1 }
+ Constant [ <persistent> int ast\flags\ENCAPS_VAR_DOLLAR_CURLY_VAR_VAR ] { 2 }
}
- Functions {
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..35251b0
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,12 @@
+{
+ "name": "nikic/php-ast",
+ "type": "php-ext",
+ "license": "BSD-3-Clause",
+ "description": "Extension exposing PHP 7 abstract syntax tree",
+ "require": {
+ "php": ">= 7.2.0"
+ },
+ "php-ext": {
+ "extension-name": "ast"
+ }
+}
diff --git a/php-ast.spec b/php-ast.spec
index 072ec0f..8a657c6 100644
--- a/php-ast.spec
+++ b/php-ast.spec
@@ -14,21 +14,29 @@
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
# After 20-tokenizer.ini
%global ini_name 40-%{pecl_name}.ini
-%global sources %{pecl_name}-%{version}
+%global sources %{archivename}
%global _configure ../%{sources}/configure
+# Github forge
+%global gh_vend nikic
+%global gh_proj php-ast
+%global forgeurl https://github.com/%{gh_vend}/%{gh_proj}
+%global tag v%{version}
+# for EL-8 to avoid TAG usage
+%global archivename %{gh_proj}-%{version}
+
Summary: Abstract Syntax Tree
Name: %{?scl_prefix}php-ast
-Version: 1.1.3
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD-3-Clause
-URL: https://pecl.php.net/package/ast
-Source0: http://pecl.php.net/get/%{sources}.tgz
+Version: 1.1.3
+Release: 3%{?dist}
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.2
-BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-tokenizer
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
@@ -54,11 +62,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -qc
-# Don't install/register tests
-sed -e 's/role="test"/role="src"/' \
- -e '/LICENSE/s/role="doc"/role="src"/' \
- -i package.xml
-
cd %{sources}
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_AST_VERSION/{s/.* "//;s/".*$//;p}' php_ast.h)
@@ -106,9 +109,6 @@ cd ../ZTS
%install
%{?dtsenable}
-# Install XML package description
-install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-
# Install the NTS stuff
%make_install -C NTS
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
@@ -157,8 +157,10 @@ TEST_PHP_ARGS="-n -d extension=tokenizer.so -d extension=%{buildroot}%{php_ztsex
%files
%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%doc %{sources}/composer.json
+%doc %{sources}/*.md
+%doc %{sources}/ast_stub.php
+%doc %{sources}/util.php
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
@@ -170,6 +172,10 @@ TEST_PHP_ARGS="-n -d extension=tokenizer.so -d extension=%{buildroot}%{php_ztsex
%changelog
+* Fri Mar 13 2026 Remi Collet <remi@remirepo.net> - 1.1.3-3
+- drop pear/pecl dependency
+- sources from github
+
* Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 1.1.3-2
- rebuild for PHP 8.5.0RC1