Searched refs:ast (Results 1 – 20 of 20) sorted by relevance
/PHP-7.2/Zend/ |
H A D | zend_ast.c | 54 ast->attr = 0; in zend_ast_create_znode() 121 return ast; in zend_ast_create_from_va_list() 132 return ast; in zend_ast_create_ex() 143 return ast; in zend_ast_create() 163 ast = zend_ast_list_add(ast, child); in zend_ast_create_list() 174 return ast; in zend_ast_create_list() 488 if (!ast) { in zend_ast_destroy_ex() 1214 ast = ast->child[0]; in zend_ast_export_ex() 1298 ast = ast->child[0]; in zend_ast_export_ex() 1709 ast = ast->child[0]; in zend_ast_export_ex() [all …]
|
H A D | zend_ast.h | 210 ZEND_API void zend_ast_destroy(zend_ast *ast); 220 ZEND_ASSERT(zend_ast_is_list(ast)); in zend_ast_get_list() 221 return (zend_ast_list *) ast; in zend_ast_get_list() 225 ZEND_ASSERT(ast->kind == ZEND_AST_ZVAL); in zend_ast_get_zval() 226 return &((zend_ast_zval *) ast)->val; in zend_ast_get_zval() 229 zval *zv = zend_ast_get_zval(ast); in zend_ast_get_str() 235 ZEND_ASSERT(!zend_ast_is_list(ast)); in zend_ast_get_num_children() 239 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_get_lineno() 240 zval *zv = zend_ast_get_zval(ast); in zend_ast_get_lineno() 243 return ast->lineno; in zend_ast_get_lineno() [all …]
|
H A D | zend_compile.c | 1875 return ast; in zend_negate_num_string() 2419 return ast->kind == ZEND_AST_VAR || ast->kind == ZEND_AST_DIM in zend_is_variable() 2420 || ast->kind == ZEND_AST_PROP || ast->kind == ZEND_AST_STATIC_PROP in zend_is_variable() 2444 while (ast->kind == ZEND_AST_DIM || ast->kind == ZEND_AST_PROP) { in zend_can_write_to_variable() 2445 ast = ast->child[0]; in zend_can_write_to_variable() 4700 if (!ast) { in zend_compile_expr_list() 6648 inline_use->attr = ast->attr ? ast->attr : use->attr; in zend_compile_group_use() 8067 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr() 8115 if (!ast) { in zend_compile_top_stmt() 8142 if (!ast) { in zend_compile_stmt() [all …]
|
H A D | zend_language_parser.y | 52 %destructor { zend_ast_destroy($$); } <ast> 89 %token <ast> T_LNUMBER "integer number (T_LNUMBER)" 91 %token <ast> T_STRING "identifier (T_STRING)" 92 %token <ast> T_VARIABLE "variable (T_VARIABLE)" 93 %token <ast> T_INLINE_HTML 97 %token <ast> T_NUM_STRING "number (T_NUM_STRING)" 240 %type <ast> internal_functions_in_yacc 252 %type <ast> lexical_var_list encaps_list 254 %type <ast> isset_variable type return_type type_expr 255 %type <ast> identifier [all …]
|
H A D | zend_variables.c | 47 zend_ast_ref *ast = (zend_ast_ref*)p; in _zval_dtor_func() local 49 zend_ast_destroy_and_free(ast->ast); in _zval_dtor_func() 50 efree_size(ast, sizeof(zend_ast_ref)); in _zval_dtor_func()
|
H A D | zend_compile.h | 104 static zend_always_inline znode *zend_ast_get_znode(zend_ast *ast) { in zend_ast_get_znode() argument 105 return &((zend_ast_znode *) ast)->node; in zend_ast_get_znode() 129 zend_ast *ast; member 134 void zend_compile_top_stmt(zend_ast *ast); 135 void zend_compile_stmt(zend_ast *ast); 136 void zend_compile_expr(znode *node, zend_ast *ast); 137 void zend_compile_var(znode *node, zend_ast *ast, uint32_t type); 139 void zend_const_expr_to_zval(zval *result, zend_ast *ast); 746 zend_ast *zend_negate_num_string(zend_ast *ast); 749 void zend_handle_encoding_declaration(zend_ast *ast);
|
H A D | zend_language_scanner.h | 57 zend_ast *ast; member
|
H A D | zend_types.h | 168 zend_ast_ref *ast; member 358 zend_ast *ast; member 635 #define Z_AST(zval) (zval).value.ast 638 #define Z_ASTVAL(zval) (zval).value.ast->ast 826 _ast->ast = (a); \
|
H A D | zend_globals.h | 121 zend_ast *ast; member
|
H A D | zend_language_scanner.l | 231 lex_state->ast = CG(ast); in zend_save_lexical_state() 271 CG(ast) = lex_state->ast; in zend_restore_lexical_state() 582 CG(ast) = NULL; in END_EXTERN_C() 596 zend_ast_process(CG(ast)); in END_EXTERN_C() 601 zend_compile_top_stmt(CG(ast)); in END_EXTERN_C() 613 zend_ast_destroy(CG(ast)); in END_EXTERN_C()
|
H A D | zend_language_scanner.c | 234 lex_state->ast = CG(ast); in zend_save_lexical_state() 274 CG(ast) = lex_state->ast; in zend_restore_lexical_state() 585 CG(ast) = NULL; in END_EXTERN_C() 599 zend_ast_process(CG(ast)); in END_EXTERN_C() 604 zend_compile_top_stmt(CG(ast)); in END_EXTERN_C() 616 zend_ast_destroy(CG(ast)); in END_EXTERN_C()
|
/PHP-7.2/ext/opcache/ |
H A D | zend_file_cache.c | 295 SERIALIZE_PTR(ast); 296 ret = ast; 297 UNSERIALIZE_PTR(ast); 311 if (ast->child[i]) { 353 zend_ast_ref *ast; local 356 ast = Z_AST_P(zv); 358 if (!IS_SERIALIZED(ast->ast)) { 359 ast->ast = zend_file_cache_serialize_ast(ast->ast, script, info, buf); 974 return ast; 1013 if (!IS_UNSERIALIZED(ast->ast)) { [all …]
|
H A D | zend_persist_calc.c | 93 static void zend_persist_ast_calc(zend_ast *ast) in zend_persist_ast_calc() argument 97 if (ast->kind == ZEND_AST_ZVAL) { in zend_persist_ast_calc() 99 zend_persist_zval_calc(zend_ast_get_zval(ast)); in zend_persist_ast_calc() 100 } else if (zend_ast_is_list(ast)) { in zend_persist_ast_calc() 101 zend_ast_list *list = zend_ast_get_list(ast); in zend_persist_ast_calc() 109 uint32_t children = zend_ast_get_num_children(ast); in zend_persist_ast_calc() 112 if (ast->child[i]) { in zend_persist_ast_calc() 113 zend_persist_ast_calc(ast->child[i]); in zend_persist_ast_calc()
|
H A D | zend_persist.c | 267 static zend_ast *zend_persist_ast(zend_ast *ast) in zend_persist_ast() argument 272 if (ast->kind == ZEND_AST_ZVAL) { in zend_persist_ast() 273 zend_ast_zval *copy = zend_accel_memdup(ast, sizeof(zend_ast_zval)); in zend_persist_ast() 276 } else if (zend_ast_is_list(ast)) { in zend_persist_ast() 277 zend_ast_list *list = zend_ast_get_list(ast); in zend_persist_ast() 278 zend_ast_list *copy = zend_accel_memdup(ast, in zend_persist_ast() 287 uint32_t children = zend_ast_get_num_children(ast); in zend_persist_ast() 288 …node = zend_accel_memdup(ast, sizeof(zend_ast) - sizeof(zend_ast *) + sizeof(zend_ast *) * childre… in zend_persist_ast() 296 efree(ast); in zend_persist_ast()
|
/PHP-7.2/ext/tokenizer/ |
H A D | tokenizer.c | 231 CG(ast) = NULL; in tokenize_parse() 243 zend_ast_destroy(CG(ast)); in tokenize_parse()
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | get_html_translation_table_basic6.phpt | 66 [*] => *
|
H A D | get_html_translation_table_basic5.phpt | 515 [*] => *
|
H A D | html_entity_decode_html5.phpt | 657 "*", 2791 * => * 2a
|
H A D | htmlentities_html5.phpt | 125 * U+0002A
|
/PHP-7.2/ext/standard/html_tables/ |
H A D | ents_html5.txt | 652 ast 0002A
|
Completed in 149 milliseconds