@@ -290,7 +290,7 @@ static void ast_create_virtual_node_ex(
290
290
va_start (va , num_children );
291
291
for (i = 0 ; i < num_children ; i ++ ) {
292
292
zval * child_zv = va_arg (va , zval * );
293
- zend_string * child_name = version >= 30 ? ast_kind_child_name (kind , i ) : NULL ;
293
+ zend_string * child_name = ast_kind_child_name (kind , i );
294
294
if (child_name ) {
295
295
zend_hash_add_new (Z_ARRVAL (tmp_zv ), child_name , child_zv );
296
296
} else {
@@ -314,8 +314,7 @@ static void ast_fill_children_ht(HashTable *ht, zend_ast *ast, zend_long version
314
314
zend_ast * * children = ast_get_children (ast , & count );
315
315
for (i = 0 ; i < count ; ++ i ) {
316
316
zend_ast * child = children [i ];
317
- zend_string * child_name =
318
- !is_list && version >= 30 ? ast_kind_child_name (ast -> kind , i ) : NULL ;
317
+ zend_string * child_name = !is_list ? ast_kind_child_name (ast -> kind , i ) : NULL ;
319
318
zval child_zv ;
320
319
321
320
if (ast -> kind == ZEND_AST_STMT_LIST ) {
@@ -555,7 +554,7 @@ static void ast_to_zval(zval *zv, zend_ast *ast, zend_long version) {
555
554
ast_fill_children_ht (Z_ARRVAL (tmp_zv ), ast , version );
556
555
}
557
556
558
- static const zend_long versions [] = {20 , 30 , 35 , 40 };
557
+ static const zend_long versions [] = {30 , 35 , 40 };
559
558
static const size_t versions_count = sizeof (versions )/sizeof (versions [0 ]);
560
559
561
560
static zend_string * ast_version_info () {
@@ -589,7 +588,7 @@ static int ast_check_version(zend_long version) {
589
588
zend_string * version_info ;
590
589
591
590
if (ast_version_known (version )) {
592
- if (version == 20 ) {
591
+ if (0 ) {
593
592
php_error_docref (NULL , E_DEPRECATED ,
594
593
"Version " ZEND_LONG_FMT " is deprecated" , version );
595
594
}
0 commit comments