/PHP-8.0/ext/opcache/ |
H A D | zend_persist.c | 397 op_array->doc_comment = zend_shared_alloc_get_xlat_entry(op_array->doc_comment); in zend_persist_op_array_ex() 727 if (prop->doc_comment) { in zend_persist_property_info() 732 zend_shared_alloc_register_xlat_entry(prop->doc_comment, prop->doc_comment); in zend_persist_property_info() 764 if (c->doc_comment) { in zend_persist_class_constant() 766 zend_string *doc_comment = zend_shared_alloc_get_xlat_entry(c->doc_comment); in zend_persist_class_constant() local 767 if (doc_comment) { in zend_persist_class_constant() 768 c->doc_comment = doc_comment; in zend_persist_class_constant() 773 zend_string *doc_comment = zend_shared_alloc_get_xlat_entry(c->doc_comment); in zend_persist_class_constant() local 774 if (!doc_comment) { in zend_persist_class_constant() 775 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 | 265 if (ZCG(accel_directives).save_comments && op_array->doc_comment) { in zend_persist_op_array_calc_ex() 266 ADD_STRING(op_array->doc_comment); in zend_persist_op_array_calc_ex() 342 if (ZCG(accel_directives).save_comments && prop->doc_comment) { in zend_persist_property_info_calc() 343 ADD_STRING(prop->doc_comment); in zend_persist_property_info_calc() 358 if (ZCG(accel_directives).save_comments && c->doc_comment) { in zend_persist_class_constant_calc() 359 ADD_STRING(c->doc_comment); in zend_persist_class_constant_calc() 446 if (ZCG(accel_directives).save_comments && ce->info.user.doc_comment) { in zend_persist_class_entry_calc() 447 ADD_STRING(ce->info.user.doc_comment); in zend_persist_class_entry_calc()
|
H A D | zend_file_cache.c | 486 SERIALIZE_STR(op_array->doc_comment); 615 SERIALIZE_STR(op_array->doc_comment); 651 if (prop->doc_comment) { 652 SERIALIZE_STR(prop->doc_comment); 678 if (c->doc_comment) { 679 SERIALIZE_STR(c->doc_comment); 1270 UNSERIALIZE_STR(op_array->doc_comment); 1419 if (prop->doc_comment) { 1420 UNSERIALIZE_STR(prop->doc_comment); 1444 if (c->doc_comment) { [all …]
|
/PHP-8.0/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.0/Zend/ |
H A D | zend_opcode.c | 65 op_array->doc_comment = NULL; in init_op_array() 323 if (prop_info->doc_comment) { in destroy_zend_class() 324 zend_string_release_ex(prop_info->doc_comment, 0); in destroy_zend_class() 341 if (c->doc_comment) { in destroy_zend_class() 342 zend_string_release_ex(c->doc_comment, 0); in destroy_zend_class() 363 if (ce->info.user.doc_comment) { in destroy_zend_class() 364 zend_string_release_ex(ce->info.user.doc_comment, 0); in destroy_zend_class() 423 if (c->doc_comment) { in destroy_zend_class() 424 zend_string_release_ex(c->doc_comment, 1); in destroy_zend_class() 512 if (op_array->doc_comment) { in destroy_op_array() [all …]
|
H A D | zend_compile.h | 43 if (CG(doc_comment)) { \ 44 zend_string_release_ex(CG(doc_comment), 0); \ 45 CG(doc_comment) = NULL; \ 366 zend_string *doc_comment; member 383 zend_string *doc_comment; member 448 zend_string *doc_comment; member
|
H A D | zend_globals.h | 98 zend_string *doc_comment; member
|
H A D | zend_ast.h | 205 zend_string *doc_comment; member 290 zend_ast_kind kind, uint32_t flags, uint32_t start_lineno, zend_string *doc_comment,
|
H A D | zend.h | 180 zend_string *doc_comment; member
|
H A D | zend_language_scanner.l | 192 CG(doc_comment) = NULL; in startup_scanner() 2365 CG(doc_comment) = zend_string_init(yytext, yyleng, 0); 2600 zend_string *saved_doc_comment = CG(doc_comment); 2611 CG(doc_comment) = NULL; 2661 CG(doc_comment) = saved_doc_comment;
|
H A D | zend_ast.c | 116 zend_ast_kind kind, uint32_t flags, uint32_t start_lineno, zend_string *doc_comment, in zend_ast_create_decl() argument 128 ast->doc_comment = doc_comment; in zend_ast_create_decl() 891 if (decl->doc_comment) { in zend_ast_destroy() 892 zend_string_release_ex(decl->doc_comment, 0); in zend_ast_destroy()
|
H A D | zend_inheritance.c | 1965 zend_string *doc_comment; in zend_do_traits_property_binding() local 2064 doc_comment = property_info->doc_comment ? zend_string_copy(property_info->doc_comment) : NULL; in zend_do_traits_property_binding() 2068 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_API.c | 3738 … *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_type type… in zend_declare_typed_property() argument 3830 property_info->doc_comment = doc_comment; in zend_declare_typed_property() 3968 …_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment) /* {{{ */ in zend_declare_property_ex() argument 3970 …zend_declare_typed_property(ce, name, property, access_type, doc_comment, (zend_type) ZEND_TYPE_IN… in zend_declare_property_ex() 4036 …ass_entry *ce, zend_string *name, zval *value, int access_type, zend_string *doc_comment) /* {{{ */ in zend_declare_class_constant_ex() argument 4062 c->doc_comment = doc_comment; in zend_declare_class_constant_ex()
|
H A D | zend_compile.c | 1833 ce->info.user.doc_comment = NULL; in zend_initialize_class_data() 6531 zend_string *doc_comment = in zend_compile_params() local 6534 scope, name, &default_value, visibility | ZEND_ACC_PROMOTED, doc_comment, type); in zend_compile_params() 6932 if (decl->doc_comment) { in zend_compile_func_decl() 6933 op_array->doc_comment = zend_string_copy(decl->doc_comment); in zend_compile_func_decl() 7045 zend_string *doc_comment = NULL; in zend_compile_prop_decl() local 7062 doc_comment = zend_string_copy(zend_ast_get_str(doc_comment_ast)); in zend_compile_prop_decl() 7103 info = zend_declare_typed_property(ce, name, &value_zv, flags, doc_comment, type); in zend_compile_prop_decl() 7160 c = zend_declare_class_constant_ex(ce, name, &value_zv, flags, doc_comment); in zend_compile_class_const_decl() 7383 if (decl->doc_comment) { in zend_compile_class_decl() [all …]
|
H A D | zend_language_parser.y | 1166 %empty { $$ = CG(doc_comment); CG(doc_comment) = NULL; }
|
H A D | zend_API.h | 364 … *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_type type… 366 …end_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment); 375 …x(zend_class_entry *ce, zend_string *name, zval *value, int access_type, zend_string *doc_comment);
|
/PHP-8.0/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() 767 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.doc_comment) { in _function_string() 1779 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.doc_comment) { in ZEND_METHOD() 1780 RETURN_STR_COPY(fptr->op_array.doc_comment); in ZEND_METHOD() 3717 if (ref->doc_comment) { in ZEND_METHOD() 3718 RETURN_STR_COPY(ref->doc_comment); in ZEND_METHOD() 4116 if (ce->type == ZEND_USER_CLASS && ce->info.user.doc_comment) { in ZEND_METHOD() 4117 RETURN_STR_COPY(ce->info.user.doc_comment); in ZEND_METHOD() 5520 if (ref->prop && ref->prop->doc_comment) { in ZEND_METHOD() [all …]
|