/php-src/Zend/tests/attributes/ |
H A D | 001_placement.phpt | 44 $attr = $r->getAttributes(); 45 var_dump(get_class($r), count($attr)); 47 foreach ($attr as $a) {
|
H A D | 003_ast_nodes.phpt | 15 $attr = $ref->getAttributes(); 16 var_dump(count($attr)); 18 $args = $attr[0]->getArguments(); 27 $attr = $ref->getAttributes(); 28 var_dump(count($attr)); 45 $attr = $ref->getAttributes(); 46 var_dump(count($attr)); 69 $attr = $ref->getAttributes(); 70 var_dump(count($attr)); 73 $attr[0]->getArguments(); [all …]
|
H A D | 005_objects.phpt | 21 foreach ($ref->getAttributes() as $attr) { 22 $obj = $attr->newInstance();
|
H A D | 006_filter.phpt | 7 $attr = $ref->getAttributes(A3::class); 9 var_dump(count($attr)); 12 $attr = $ref->getAttributes(A2::class); 14 var_dump(count($attr), $attr[0]->getName()); 17 $attr = $ref->getAttributes(A2::class); 19 var_dump(count($attr), $attr[0]->getName(), $attr[1]->getName()); 30 var_dump(count($attr)); 35 var_dump(count($attr)); 40 var_dump(count($attr)); 45 var_dump(count($attr)); [all …]
|
H A D | 013_class_scope.phpt | 45 $attr = $ref->getMethod('foo')->getAttributes()[0]; 48 $attr->getArguments();
|
H A D | 020_userland_attribute_validation.phpt | 10 $attr = $ref->getAttributes()[0]; 11 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated()); 12 var_dump(get_class($attr->newInstance())); 17 $attr = $ref->getAttributes()[0]; 18 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_CLASS, $attr->isRepeated()); 21 $attr->newInstance(); 29 $attr = $ref->getAttributes()[0]; 30 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated()); 33 $attr->newInstance(); 44 $attr = $ref->getAttributes()[0]; [all …]
|
H A D | 027_trailing_comma_args.phpt | 15 $attr = $ref->getAttributes()[0]; 16 var_dump($attr->getName(), $attr->getArguments());
|
H A D | 028_grouped.phpt | 28 $attr = $ref->getAttributes(); 29 var_dump(get_class($ref), count($attr)); 31 foreach ($attr as $a) {
|
/php-src/Zend/tests/named_params/ |
H A D | attributes.phpt | 21 $attr = (new ReflectionClass(Test1::class))->getAttributes()[0]; 22 var_dump($attr->getName()); 23 var_dump($attr->getArguments()); 24 var_dump($attr->newInstance()); 26 $attr = (new ReflectionClass(Test2::class))->getAttributes()[0]; 28 var_dump($attr->newInstance());
|
/php-src/Zend/tests/traits/ |
H A D | bug76539.phpt | 6 protected $attr = self::class . 'Test'; 9 echo $this->attr, PHP_EOL;
|
H A D | methods_001.phpt | 15 public function __set($attr, $val) { 16 var_dump($attr .'==='. $val);
|
/php-src/Zend/ |
H A D | zend_ast.c | 50 ast->attr = 0; in zend_ast_create_znode() 61 ast->attr = attr; in zend_ast_create_zval_int() 96 ast->attr = attr; in zend_ast_create_constant() 120 ast->attr = 0; in zend_ast_create_decl() 142 ast->attr = 0; in zend_ast_create_0() 155 ast->attr = 0; in zend_ast_create_1() 348 ast->attr = attr; in zend_ast_create_from_va_list() 1064 new->attr = ast->attr; in zend_ast_tree_copy() 1071 new->attr = ast->attr; in zend_ast_tree_copy() 1080 new->attr = list->attr; in zend_ast_tree_copy() [all …]
|
H A D | zend_ast.h | 183 zend_ast_attr attr; /* Additional attribute, use depending on node type */ member 191 zend_ast_attr attr; member 200 zend_ast_attr attr; member 207 zend_ast_attr attr; /* Unused - for structure compatibility */ member 247 ast->attr = attr; in zend_ast_create_ex_0() 252 ast->attr = attr; in zend_ast_create_ex_1() 257 ast->attr = attr; in zend_ast_create_ex_2() 262 ast->attr = attr; in zend_ast_create_ex_3() 267 ast->attr = attr; in zend_ast_create_ex_4() 272 ast->attr = attr; in zend_ast_create_ex_5() [all …]
|
H A D | zend_attributes.c | 41 if (attr->argc > 0) { in zend_attribute_attribute_get_flags() 152 zend_attribute *attr; in get_attribute() local 155 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute() 156 return attr; in get_attribute() 171 return attr; in get_attribute_str() 248 if (other != attr && other->offset == attr->offset) { in zend_is_attribute_repeated() 296 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute() 297 attr->flags = flags; in zend_add_attribute() 300 attr->argc = argc; in zend_add_attribute() 310 return attr; in zend_add_attribute() [all …]
|
H A D | zend_attributes.h | 67 void (*validator)(zend_attribute *attr, uint32_t target, zend_class_entry *scope); 76 ZEND_API zend_result zend_get_attribute_value(zval *ret, zend_attribute *attr, uint32_t i, zend_cla… 79 ZEND_API bool zend_is_attribute_repeated(HashTable *attributes, zend_attribute *attr); 89 uint32_t zend_attribute_attribute_get_flags(zend_attribute *attr, zend_class_entry *scope);
|
H A D | zend_call_stack.c | 126 pthread_attr_t attr; in zend_call_stack_get_linux_pthread() local 135 error = pthread_getattr_np(pthread_self(), &attr); in zend_call_stack_get_linux_pthread() 140 error = pthread_attr_getstack(&attr, &addr, &max_size); in zend_call_stack_get_linux_pthread() 149 error = pthread_attr_getguardsize(&attr, &guard_size); in zend_call_stack_get_linux_pthread() 273 pthread_attr_t attr; in zend_call_stack_get_freebsd_pthread() local 281 pthread_attr_init(&attr); in zend_call_stack_get_freebsd_pthread() 283 error = pthread_attr_get_np(pthread_self(), &attr); in zend_call_stack_get_freebsd_pthread() 296 pthread_attr_destroy(&attr); in zend_call_stack_get_freebsd_pthread() 300 pthread_attr_destroy(&attr); in zend_call_stack_get_freebsd_pthread() 565 pthread_attr_t attr; in zend_call_stack_get_netbsd_pthread() local [all …]
|
H A D | zend_compile.c | 3299 if (elem_ast->attr) { in zend_compile_list_assign() 6987 ast->attr = orig_ast_attr; in zend_compile_typename_ex() 7016 zend_attribute *attr; in zend_compile_attributes() local 7082 zend_string_equals(attr->args[k].name, attr->args[j].name)) { in zend_compile_attributes() 7588 if (var_ast->attr) { in zend_compile_closure_uses() 8608 uint32_t type = ast->attr; in zend_compile_use() 8690 inline_use->attr = ast->attr ? ast->attr : use->attr; in zend_compile_group_use() 8829 switch (ast->attr) { in zend_try_ct_eval_magic_const() 9981 by_ref = elem_ast->attr; in zend_compile_array() 10394 ast->attr = fetch_type; in zend_compile_const_expr_class_name() [all …]
|
H A D | zend_compile.h | 93 zend_ast_attr attr; member
|
H A D | zend_enum.c | 539 ast->attr = 0; in create_enum_case_ast() 544 ast->child[0]->attr = 0; in create_enum_case_ast() 550 ast->child[1]->attr = 0; in create_enum_case_ast() 557 ast->child[2]->attr = 0; in create_enum_case_ast()
|
H A D | zend_execute_API.c | 704 zval *zv = zend_get_constant_ex(name, scope, ast->attr); in zval_update_constant_with_ctx()
|
H A D | zend_language_parser.y | 351 T_STRING { $$ = $1; $$->attr = ZEND_NAME_NOT_FQ; } 352 | T_NAME_QUALIFIED { $$ = $1; $$->attr = ZEND_NAME_NOT_FQ; } 353 | T_NAME_FULLY_QUALIFIED { $$ = $1; $$->attr = ZEND_NAME_FQ; } 455 | use_type unprefixed_use_declaration { $$ = $2; $$->attr = $1; } 822 | '?' type { $$ = $2; $$->attr |= ZEND_TYPE_NULLABLE; } 941 $$->attr = $1; } 944 $$->attr = $1; } 947 $$->attr = $1; } 1312 | ampersand T_VARIABLE { $$ = $2; $$->attr = ZEND_BIND_REF; } 1530 { $5->attr = ZEND_ARRAY_SYNTAX_LIST; [all …]
|
/php-src/build/ |
H A D | gen_stub.php | 3403 foreach ($this->attributes as $attr) { 3404 if ($attr->class === "AllowDynamicProperties") { 3841 $attr = $doc->createAttribute("xpointer"); 3842 $attr->value = $query; 3843 $includeElement->appendChild($attr); 4533 foreach ($attrGroup->attrs as $attr) { 4534 $attributes[] = new AttributeInfo($attr->name->toString(), $attr->args);
|
/php-src/ext/com_dotnet/ |
H A D | com_typeinfo.c | 379 TYPEATTR *attr; in php_com_locate_typeinfo() local 382 ITypeInfo_GetTypeAttr(coinfo, &attr); in php_com_locate_typeinfo() 384 for (i = 0; i < attr->cImplTypes; i++) { in php_com_locate_typeinfo() 404 ITypeInfo_ReleaseTypeAttr(coinfo, attr); in php_com_locate_typeinfo() 481 TYPEATTR *attr; in php_com_process_typeinfo() local 488 if (FAILED(ITypeInfo_GetTypeAttr(typeinfo, &attr))) { in php_com_process_typeinfo() 493 if (id_to_name == NULL || attr->typekind == TKIND_DISPATCH) { in php_com_process_typeinfo() 496 memcpy(guid, &attr->guid, sizeof(GUID)); in php_com_process_typeinfo() 506 guid_str = php_com_string_from_clsid(&attr->guid, codepage); in php_com_process_typeinfo() 517 for (i = 0; i < attr->cFuncs; i++) { in php_com_process_typeinfo() [all …]
|
/php-src/ext/dom/ |
H A D | attr.c | 202 bool dom_compare_value(const xmlAttr *attr, const xmlChar *value) in dom_compare_value() argument 205 xmlChar *attr_value = php_libxml_attr_value(attr, &free); in dom_compare_value()
|
H A D | config.m4 | 19 …$LEXBOR_DIR/dom/interface.c $LEXBOR_DIR/dom/interfaces/attr.c $LEXBOR_DIR/dom/interfaces/cdata_sec… 28 PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c \
|