/PHP-8.3/ext/opcache/ |
H A D | zend_persist.c | 455 op_array->doc_comment = zend_shared_alloc_get_xlat_entry(op_array->doc_comment); in zend_persist_op_array_ex() 793 if (prop->doc_comment) { in zend_persist_property_info() 798 zend_shared_alloc_register_xlat_entry(prop->doc_comment, prop->doc_comment); in zend_persist_property_info() 834 if (c->doc_comment) { in zend_persist_class_constant() 836 zend_string *doc_comment = zend_shared_alloc_get_xlat_entry(c->doc_comment); in zend_persist_class_constant() local 837 if (doc_comment) { in zend_persist_class_constant() 838 c->doc_comment = doc_comment; in zend_persist_class_constant() 843 zend_string *doc_comment = zend_shared_alloc_get_xlat_entry(c->doc_comment); in zend_persist_class_constant() local 844 if (!doc_comment) { in zend_persist_class_constant() 845 zend_shared_alloc_register_xlat_entry(c->doc_comment, c->doc_comment); in zend_persist_class_constant() [all …]
|
H A D | zend_persist_calc.c | 286 if (ZCG(accel_directives).save_comments && op_array->doc_comment) { in zend_persist_op_array_calc_ex() 287 ADD_STRING(op_array->doc_comment); in zend_persist_op_array_calc_ex() 377 if (ZCG(accel_directives).save_comments && prop->doc_comment) { in zend_persist_property_info_calc() 378 ADD_STRING(prop->doc_comment); in zend_persist_property_info_calc() 402 if (ZCG(accel_directives).save_comments && c->doc_comment) { in zend_persist_class_constant_calc() 403 ADD_STRING(c->doc_comment); in zend_persist_class_constant_calc() 496 if (ZCG(accel_directives).save_comments && ce->info.user.doc_comment) { in zend_persist_class_entry_calc() 497 ADD_STRING(ce->info.user.doc_comment); in zend_persist_class_entry_calc()
|
H A D | zend_file_cache.c | 484 SERIALIZE_STR(op_array->doc_comment); 634 SERIALIZE_STR(op_array->doc_comment); 670 if (prop->doc_comment) { 671 SERIALIZE_STR(prop->doc_comment); 696 if (c->doc_comment) { 697 SERIALIZE_STR(c->doc_comment); 1344 UNSERIALIZE_STR(op_array->doc_comment); 1509 if (prop->doc_comment) { 1510 UNSERIALIZE_STR(prop->doc_comment); 1534 if (c->doc_comment) { [all …]
|
/PHP-8.3/ext/reflection/tests/ |
H A D | bug64936.phpt | 16 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm… 23 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm…
|
/PHP-8.3/Zend/tests/ |
H A D | gh12468_1.phpt | 2 GH-12468: Double-free of doc_comment when overriding static property via trait
|
H A D | gh12468_2.phpt | 2 GH-12468: Double-free of doc_comment when overriding static property via trait
|
/PHP-8.3/Zend/ |
H A D | zend_opcode.c | 67 op_array->doc_comment = NULL; in init_op_array() 340 if (ce->info.user.doc_comment) { in destroy_zend_class() 341 zend_string_release_ex(ce->info.user.doc_comment, 0); in destroy_zend_class() 387 if (prop_info->doc_comment) { in destroy_zend_class() 388 zend_string_release_ex(prop_info->doc_comment, 0); in destroy_zend_class() 404 if (c->doc_comment) { in destroy_zend_class() 405 zend_string_release_ex(c->doc_comment, 0); in destroy_zend_class() 487 if (c->doc_comment) { in destroy_zend_class() 488 zend_string_release_ex(c->doc_comment, 1); in destroy_zend_class() 581 if (op_array->doc_comment) { in destroy_op_array() [all …]
|
H A D | zend_compile.h | 44 if (CG(doc_comment)) { \ 45 zend_string_release_ex(CG(doc_comment), 0); \ 46 CG(doc_comment) = NULL; \ 393 zend_string *doc_comment; member 410 zend_string *doc_comment; member 478 zend_string *doc_comment; member
|
H A D | zend_globals.h | 118 zend_string *doc_comment; member
|
H A D | zend_ast.h | 211 zend_string *doc_comment; member 296 zend_ast_kind kind, uint32_t flags, uint32_t start_lineno, zend_string *doc_comment,
|
H A D | zend_API.c | 4370 if (property_info_ptr->doc_comment && property_info_ptr->ce == ce) { in zend_declare_typed_property() 4371 zend_string_release(property_info_ptr->doc_comment); in zend_declare_typed_property() 4391 if (property_info_ptr->doc_comment && property_info_ptr->ce == ce) { in zend_declare_typed_property() 4392 zend_string_release_ex(property_info_ptr->doc_comment, 1); in zend_declare_typed_property() 4436 property_info->doc_comment = doc_comment; in zend_declare_typed_property() 4578 …_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment) /* {{{ */ in zend_declare_property_ex() argument 4580 …zend_declare_typed_property(ce, name, property, access_type, doc_comment, (zend_type) ZEND_TYPE_IN… in zend_declare_property_ex() 4646 …ass_entry *ce, zend_string *name, zval *value, int flags, zend_string *doc_comment, zend_type type… in zend_declare_typed_class_constant() argument 4672 c->doc_comment = doc_comment; in zend_declare_typed_class_constant() 4693 …stant_ex(zend_class_entry *ce, zend_string *name, zval *value, int flags, zend_string *doc_comment) in zend_declare_class_constant_ex() argument [all …]
|
H A D | zend_language_scanner.l | 191 CG(doc_comment) = NULL; in startup_scanner() 2435 CG(doc_comment) = zend_string_init(yytext, yyleng, 0); 2676 zend_string *saved_doc_comment = CG(doc_comment); 2687 CG(doc_comment) = NULL; 2737 CG(doc_comment) = saved_doc_comment;
|
H A D | zend.h | 227 zend_string *doc_comment; member
|
H A D | zend_inheritance.c | 2451 constant->doc_comment = constant->doc_comment ? zend_string_copy(constant->doc_comment) : NULL; in zend_do_traits_constant_binding() 2488 zend_string *doc_comment; in zend_do_traits_property_binding() local 2561 doc_comment = property_info->doc_comment ? zend_string_copy(property_info->doc_comment) : NULL; in zend_do_traits_property_binding() 2566 new_prop = zend_declare_typed_property(ce, prop_name, prop_value, flags, doc_comment, type); in zend_do_traits_property_binding()
|
H A D | zend_ast.c | 113 zend_ast_kind kind, uint32_t flags, uint32_t start_lineno, zend_string *doc_comment, in zend_ast_create_decl() argument 124 ast->doc_comment = doc_comment; in zend_ast_create_decl() 1161 if (decl->doc_comment) { in zend_ast_destroy() 1162 zend_string_release_ex(decl->doc_comment, 0); in zend_ast_destroy()
|
H A D | zend_compile.c | 1987 ce->info.user.doc_comment = NULL; in zend_initialize_class_data() 7183 zend_string *doc_comment = in zend_compile_params() local 7589 if (decl->doc_comment) { in zend_compile_func_decl() 7590 op_array->doc_comment = zend_string_copy(decl->doc_comment); in zend_compile_func_decl() 7736 zend_string *doc_comment = NULL; in zend_compile_prop_decl() local 7753 doc_comment = zend_string_copy(zend_ast_get_str(doc_comment_ast)); in zend_compile_prop_decl() 7809 info = zend_declare_typed_property(ce, name, &value_zv, flags, doc_comment, type); in zend_compile_prop_decl() 8132 if (decl->doc_comment) { in zend_compile_class_decl() 8133 ce->info.user.doc_comment = zend_string_copy(decl->doc_comment); in zend_compile_class_decl() 8311 zend_string *doc_comment = NULL; in zend_compile_enum_case() local [all …]
|
H A D | zend_language_parser.y | 1284 %empty { $$ = CG(doc_comment); CG(doc_comment) = NULL; }
|
H A D | zend_API.h | 421 … *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_type type… 423 …end_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment); 432 …try *ce, zend_string *name, zval *value, int access_type, zend_string *doc_comment, zend_type type… 433 …x(zend_class_entry *ce, zend_string *name, zval *value, int access_type, zend_string *doc_comment);
|
/PHP-8.3/ext/reflection/ |
H A D | php_reflection.c | 318 if (ce->type == ZEND_USER_CLASS && ce->info.user.doc_comment) { in _class_string() 319 smart_str_append_printf(str, "%s%s", indent, ZSTR_VAL(ce->info.user.doc_comment)); in _class_string() 787 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.doc_comment) { in _function_string() 1924 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.doc_comment) { in ZEND_METHOD() 1925 RETURN_STR_COPY(fptr->op_array.doc_comment); in ZEND_METHOD() 3996 if (ref->doc_comment) { in ZEND_METHOD() 3997 RETURN_STR_COPY(ref->doc_comment); in ZEND_METHOD() 4406 if (ce->type == ZEND_USER_CLASS && ce->info.user.doc_comment) { in ZEND_METHOD() 4407 RETURN_STR_COPY(ce->info.user.doc_comment); in ZEND_METHOD() 5846 if (ref->prop && ref->prop->doc_comment) { in ZEND_METHOD() [all …]
|