/PHP-8.3/Zend/ |
H A D | zend_ast.c | 145 return ast; in zend_ast_create_0() 164 return ast; in zend_ast_create_1() 186 return ast; in zend_ast_create_2() 407 ast = zend_ast_list_add(ast, child); in zend_ast_create_list() 1138 ast = ast->child[0]; in zend_ast_destroy() 1932 ast = ast->child[0]; in zend_ast_export_ex() 1981 ast = ast->child[0]; in zend_ast_export_ex() 2065 ast = ast->child[0]; in zend_ast_export_ex() 2384 ast = ast->child[1]; in zend_ast_export_ex() 2541 ast = ast->child[0]; in zend_ast_export_ex() [all …]
|
H A D | zend_ast.h | 247 ast->attr = attr; in zend_ast_create_ex_0() 248 return ast; in zend_ast_create_ex_0() 252 ast->attr = attr; in zend_ast_create_ex_1() 253 return ast; in zend_ast_create_ex_1() 257 ast->attr = attr; in zend_ast_create_ex_2() 258 return ast; in zend_ast_create_ex_2() 262 ast->attr = attr; in zend_ast_create_ex_3() 263 return ast; in zend_ast_create_ex_3() 268 return ast; in zend_ast_create_ex_4() 273 return ast; in zend_ast_create_ex_5() [all …]
|
H A D | zend_compile.c | 2082 return ast; in zend_negate_num_string() 2468 || ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY; in zend_short_circuiting_commit() 2682 return zend_is_variable(ast) || zend_is_call(ast); in zend_is_variable_or_call() 2700 ast = ast->child[0]; in zend_can_write_to_variable() 5476 if (!ast) { in zend_compile_expr_list() 7279 if (!ast) { in find_implicit_binds_recursively() 8462 inline_use->attr = ast->attr ? ast->attr : use->attr; in zend_compile_group_use() 10272 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr() 10330 if (!ast) { in zend_compile_top_stmt() 10362 if (!ast) { in zend_compile_stmt() [all …]
|
H A D | zend_language_parser.y | 51 %destructor { zend_ast_destroy($$); } <ast> 89 %token <ast> T_LNUMBER "integer" 90 %token <ast> T_DNUMBER "floating-point number" 91 %token <ast> T_STRING "identifier" 94 %token <ast> T_NAME_QUALIFIED "namespaced name" 95 %token <ast> T_VARIABLE "variable" 96 %token <ast> T_INLINE_HTML 99 %token <ast> T_STRING_VARNAME "variable name" 100 %token <ast> T_NUM_STRING "number" 259 %type <ast> internal_functions_in_yacc [all …]
|
H A D | zend_enum.c | 535 ast->kind = ZEND_AST_CONST_ENUM_INIT; in create_enum_case_ast() 536 ast->attr = 0; in create_enum_case_ast() 537 ast->lineno = 0; in create_enum_case_ast() 540 ast->child[0]->kind = ZEND_AST_ZVAL; in create_enum_case_ast() 541 ast->child[0]->attr = 0; in create_enum_case_ast() 544 Z_LINENO_P(zend_ast_get_zval(ast->child[0])) = 0; in create_enum_case_ast() 547 ast->child[1]->kind = ZEND_AST_ZVAL; in create_enum_case_ast() 548 ast->child[1]->attr = 0; in create_enum_case_ast() 555 ast->child[2]->kind = ZEND_AST_ZVAL; in create_enum_case_ast() 556 ast->child[2]->attr = 0; in create_enum_case_ast() [all …]
|
H A D | zend_language_scanner.h | 58 zend_ast *ast; member
|
H A D | zend_language_scanner.l | 250 lex_state->ast = CG(ast); in zend_save_lexical_state() 293 CG(ast) = lex_state->ast; in zend_restore_lexical_state() 596 CG(ast) = NULL; in zend_compile() 613 zend_ast_process(CG(ast)); in zend_compile() 630 zend_ast_destroy(CG(ast)); in zend_compile() 665 zend_ast *ast; in zend_compile_string_to_ast() local 674 CG(ast) = NULL; in zend_compile_string_to_ast() 679 zend_ast_destroy(CG(ast)); in zend_compile_string_to_ast() 681 CG(ast) = NULL; in zend_compile_string_to_ast() 685 ast = CG(ast); in zend_compile_string_to_ast() [all …]
|
H A D | zend_compile.h | 98 static zend_always_inline znode *zend_ast_get_znode(zend_ast *ast) { in zend_ast_get_znode() argument 99 return &((zend_ast_znode *) ast)->node; in zend_ast_get_znode() 122 zend_ast *ast; member 129 void zend_compile_top_stmt(zend_ast *ast); 826 zend_ast *zend_negate_num_string(zend_ast *ast); 834 bool zend_handle_encoding_declaration(zend_ast *ast);
|
H A D | zend_globals.h | 136 zend_ast *ast; member
|
H A D | zend_execute_API.c | 686 zend_ast *ast = Z_ASTVAL_P(p); in zval_update_constant_with_ctx() local 688 if (ast->kind == ZEND_AST_CONSTANT) { in zval_update_constant_with_ctx() 689 zend_string *name = zend_ast_get_constant_name(ast); in zval_update_constant_with_ctx() 690 zval *zv = zend_get_constant_ex(name, scope, ast->attr); in zval_update_constant_with_ctx() 709 zend_result result = zend_ast_evaluate_ex(&tmp, ast, scope, &short_circuited, ctx) != SUCCESS; in zval_update_constant_with_ctx()
|
H A D | zend_types.h | 324 zend_ast_ref *ast; member 1021 #define Z_AST(zval) (zval).value.ast 1226 #define ZVAL_AST(z, ast) do { \ argument 1228 Z_AST_P(__z) = ast; \
|
H A D | zend_inheritance.c | 973 zend_ast *ast = Z_ASTVAL_P(zv); in zend_get_function_declaration() local 974 if (ast->kind == ZEND_AST_CONSTANT) { in zend_get_function_declaration() 975 smart_str_append(&str, zend_ast_get_constant_name(ast)); in zend_get_function_declaration() 976 } else if (ast->kind == ZEND_AST_CLASS_CONST) { in zend_get_function_declaration() 977 smart_str_append(&str, zend_ast_get_str(ast->child[0])); in zend_get_function_declaration() 979 smart_str_append(&str, zend_ast_get_str(ast->child[1])); in zend_get_function_declaration()
|
H A D | zend_API.c | 5089 zend_ast *ast; in get_default_via_ast() local 5095 ast = zend_compile_string_to_ast(code, &ast_arena, ZSTR_EMPTY_ALLOC()); in get_default_via_ast() 5098 if (!ast) { in get_default_via_ast() 5102 zend_ast_list *statement_list = zend_ast_get_list(ast); in get_default_via_ast() 5117 zend_ast_destroy(ast); in get_default_via_ast()
|
/PHP-8.3/ext/opcache/ |
H A D | zend_persist_calc.c | 74 static void zend_persist_ast_calc(zend_ast *ast) in zend_persist_ast_calc() argument 78 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { in zend_persist_ast_calc() 80 zend_persist_zval_calc(&((zend_ast_zval*)(ast))->val); in zend_persist_ast_calc() 81 } else if (zend_ast_is_list(ast)) { in zend_persist_ast_calc() 82 zend_ast_list *list = zend_ast_get_list(ast); in zend_persist_ast_calc() 90 uint32_t children = zend_ast_get_num_children(ast); in zend_persist_ast_calc() 93 if (ast->child[i]) { in zend_persist_ast_calc() 94 zend_persist_ast_calc(ast->child[i]); in zend_persist_ast_calc()
|
H A D | zend_file_cache.c | 351 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { 353 } else if (zend_ast_is_list(ast)) { 366 if (ast->child[i] && !IS_SERIALIZED(ast->child[i])) { 367 SERIALIZE_PTR(ast->child[i]); 368 tmp = ast->child[i]; 399 zend_ast_ref *ast; local 402 ast = Z_AST_P(zv); 403 UNSERIALIZE_PTR(ast); 1206 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { 1219 if (ast->child[i] && !IS_UNSERIALIZED(ast->child[i])) { [all …]
|
H A D | zend_persist.c | 172 static zend_ast *zend_persist_ast(zend_ast *ast) in zend_persist_ast() argument 177 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { in zend_persist_ast() 178 zend_ast_zval *copy = zend_shared_memdup(ast, sizeof(zend_ast_zval)); in zend_persist_ast() 181 } else if (zend_ast_is_list(ast)) { in zend_persist_ast() 182 zend_ast_list *list = zend_ast_get_list(ast); in zend_persist_ast() 183 zend_ast_list *copy = zend_shared_memdup(ast, in zend_persist_ast() 192 uint32_t children = zend_ast_get_num_children(ast); in zend_persist_ast() 193 node = zend_shared_memdup(ast, zend_ast_size(children)); in zend_persist_ast()
|
/PHP-8.3/Zend/tests/type_declarations/ |
H A D | typed_properties_022.phpt | 2 Test typed properties delay type check on ast
|
/PHP-8.3/Zend/Optimizer/ |
H A D | pass1.c | 176 zend_ast *ast = Z_ASTVAL_P(c); in zend_optimizer_pass1() local 177 if (ast->kind != ZEND_AST_CONSTANT in zend_optimizer_pass1() 178 || !zend_optimizer_get_persistent_constant(zend_ast_get_constant_name(ast), &result, 1) in zend_optimizer_pass1()
|
/PHP-8.3/sapi/phpdbg/ |
H A D | phpdbg_utils.c | 721 zend_ast *ast = Z_ASTVAL_P(zv); in phpdbg_short_zval_print() local 723 if (ast->kind == ZEND_AST_CONSTANT in phpdbg_short_zval_print() 724 || ast->kind == ZEND_AST_CONSTANT_CLASS in phpdbg_short_zval_print() 725 || ast->kind == ZEND_AST_CLASS_CONST) { in phpdbg_short_zval_print()
|
/PHP-8.3/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
|
/PHP-8.3/ext/tokenizer/ |
H A D | tokenizer.c | 476 CG(ast) = NULL; in tokenize_parse() 488 zend_ast_destroy(CG(ast)); in tokenize_parse()
|
/PHP-8.3/ext/reflection/ |
H A D | php_reflection.c | 2936 zend_ast *ast = Z_ASTVAL(default_value); in ZEND_METHOD() local 2937 RETVAL_BOOL(ast->kind == ZEND_AST_CONSTANT in ZEND_METHOD() 2938 || ast->kind == ZEND_AST_CONSTANT_CLASS in ZEND_METHOD() 2939 || ast->kind == ZEND_AST_CLASS_CONST); in ZEND_METHOD() 2972 zend_ast *ast = Z_ASTVAL(default_value); in ZEND_METHOD() local 2973 if (ast->kind == ZEND_AST_CONSTANT) { in ZEND_METHOD() 2974 RETVAL_STR_COPY(zend_ast_get_constant_name(ast)); in ZEND_METHOD() 2975 } else if (ast->kind == ZEND_AST_CONSTANT_CLASS) { in ZEND_METHOD() 2977 } else if (ast->kind == ZEND_AST_CLASS_CONST) { in ZEND_METHOD() 2978 zend_string *class_name = zend_ast_get_str(ast->child[0]); in ZEND_METHOD() [all …]
|
/PHP-8.3/ext/mbstring/tests/ |
H A D | mb_detect_encoding.phpt | 333 'Častá krůpěj kámen proráží.',
|