Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 151) sorted by relevance

1234567

/PHP-8.2/Zend/
H A Dzend_attributes.c44 if (attr->argc > 0) { in zend_attribute_attribute_get_flags()
162 zend_attribute *attr; in get_attribute() local
165 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute()
166 return attr; in get_attribute()
181 return attr; in get_attribute_str()
258 if (other != attr && other->offset == attr->offset) { in zend_is_attribute_repeated()
306 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute()
307 attr->flags = flags; in zend_add_attribute()
310 attr->argc = argc; in zend_add_attribute()
320 return attr; in zend_add_attribute()
[all …]
H A Dzend_ast.h182 zend_ast_attr attr; /* Additional attribute, use depending on node type */ member
190 zend_ast_attr attr; member
199 zend_ast_attr attr; member
206 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 …]
/PHP-8.2/Zend/tests/attributes/
H A D020_userland_attribute_validation.phpt10 $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 D006_filter.phpt7 $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 D003_ast_nodes.phpt15 $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 …]
/PHP-8.2/ext/dom/tests/manually_call_constructor/
H A Dattribute.phpt8 $attr = new DOMAttr("attribute", "my value");
9 var_dump($attr->nodeName, $attr->nodeValue);
10 $attr->__construct("newattribute", "my new value");
11 var_dump($attr->nodeName, $attr->nodeValue);
18 $doc->documentElement->setAttributeNode($attr);
21 $attr->__construct("newnewattribute", "my even newer value");
22 $doc->documentElement->setAttributeNode($attr);
/PHP-8.2/ext/pdo_mysql/tests/
H A Dbug_74376.phpt15 $attr = getenv('PDOTEST_ATTR');
16 $attr = $attr ? unserialize($attr) : [];
17 $attr[PDO::ATTR_PERSISTENT] = true;
18 $attr[PDO::ATTR_EMULATE_PREPARES] = false;
20 putenv('PDOTEST_ATTR=' . serialize($attr));
H A Dbug_61411.phpt26 $attr = getenv('PDOTEST_ATTR');
27 if (!$attr) {
28 $attr = array();
30 $attr = unserialize($attr);
32 $attr[PDO::ATTR_PERSISTENT] = true;
33 $attr[PDO::ATTR_EMULATE_PREPARES] = false;
34 $attr[PDO::ATTR_STRINGIFY_FETCHES] = true;
35 putenv('PDOTEST_ATTR='.serialize($attr));
/PHP-8.2/ext/zend_test/tests/
H A Dattribute-promotion-parameter-only.phpt16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes();
18 var_dump(count($attr));
19 var_dump($attr[0]->getName());
20 var_dump($attr[0]->newInstance()->parameter);
22 $attr = $ref->getProperty('param')->getAttributes();
24 var_dump(count($attr));
H A Dattribute-promotion-property-only.phpt16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes();
18 var_dump(count($attr));
20 $attr = $ref->getProperty('param')->getAttributes();
22 var_dump(count($attr));
23 var_dump($attr[0]->getName());
24 var_dump($attr[0]->newInstance()->parameter);
/PHP-8.2/ext/xmlreader/tests/
H A D003-mb.phpt22 $attr = $reader->moveToFirstAttribute();
27 echo "1st attr (num) failed\n";
31 $attr = $reader->moveToNextAttribute();
36 echo "2nd attr (idx) failed\n";
40 $attr = $reader->moveToAttribute('num');
45 echo "attr num failed\n";
48 $attr = $reader->moveToAttribute('idx');
53 echo "attr idx failed\n";
57 $attr = $reader->moveToAttributeNo(0);
62 echo "attr 0 failed\n";
[all …]
H A D003.phpt22 $attr = $reader->moveToFirstAttribute();
27 echo "1st attr (num) failed\n";
31 $attr = $reader->moveToNextAttribute();
36 echo "2nd attr (idx) failed\n";
40 $attr = $reader->moveToAttribute('num');
45 echo "attr num failed\n";
48 $attr = $reader->moveToAttribute('idx');
53 echo "attr idx failed\n";
57 $attr = $reader->moveToAttributeNo(0);
62 echo "attr 0 failed\n";
[all …]
/PHP-8.2/ext/dom/tests/
H A Dregsiter_node_class.phpt23 $attr = $root->getAttributeNode('a');
24 echo get_class($attr), "\n";
25 print $attr->testit()."\n";
26 unset($attr);
28 $attr = $root->getAttributeNode('a');
29 echo get_class($attr), "\n";
31 print $attr->testit()."\n";
H A Dgh16151.phpt9 $attr = new DOMAttr("c" , "n");
12 $element->setAttributeNodeNS($attr);
15 $attr->insertBefore(new DOMComment("h"));
20 $attr->appendChild(new DOMComment("h"));
25 $attr->insertBefore($doc->createEntityReference('amp'));
26 $attr->appendChild($doc->createEntityReference('amp'));
H A Dbug47848.phpt12 $fromdom->loadXML('<data xmlns:ai="http://altruists.org" ai:attr="namespaced" />');
14 $attr= $fromdom->firstChild->attributes->item(0);
16 $att = $aDOM->importNode($attr);
18 $aDOM->documentElement->appendChild($aDOM->importNode($attr, true));
25 <f2f:a xmlns:f2f="http://friend2friend.net/" xmlns:ai="http://altruists.org" ai:attr="namespaced"/>
H A Dgh14343.phpt9 $fromdom->loadXML('<data xmlns:ai="http://test.org" ai:attr="namespaced" />');
10 $attr= $fromdom->firstChild->attributes->item(0);
11 $att = $aDOM->importNode($attr);
15 ai:attr="namespaced"
H A DDOM4_ParentNode_append_with_attributes.phpt10 $dom->loadXML('<test attr-one="21"/>');
12 $replacement = $dom->createAttribute('attr-one');
14 $addition = $dom->createAttribute('attr-two');
30 <test attr-one="21"/>
H A DDOMAttr_value_basic_002.phpt10 $attr = new DOMAttr('category');
11 $attr->value = 1;
12 print $attr->value;
H A Dgh16473.phpt8 $root = simplexml_load_string('<root xmlns:x="urn:x" x:attr="foo"/>');
9 $attr = $root->attributes('urn:x');
10 var_dump(dom_import_simplexml($attr)->textContent);
/PHP-8.2/Zend/tests/named_params/
H A Dattributes.phpt21 $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-8.2/ext/pdo/tests/
H A Dpdo_039.phpt20 $attr = getenv('PDOTEST_ATTR');
21 if (is_string($attr) && strlen($attr)) {
22 $attr = unserialize($attr);
24 $attr = null;
30 $conn = new PDO($dsn, $user, $pass, $attr);
/PHP-8.2/ext/soap/
H A Dphp_packet_soap.c27 xmlAttrPtr attr; in parse_packet_soap() local
79 attr = env->properties; in parse_packet_soap()
80 while (attr != NULL) { in parse_packet_soap()
81 if (attr->ns == NULL) { in parse_packet_soap()
96 attr = attr->next; in parse_packet_soap()
127 attr = body->properties; in parse_packet_soap()
128 while (attr != NULL) { in parse_packet_soap()
129 if (attr->ns == NULL) { in parse_packet_soap()
146 attr = attr->next; in parse_packet_soap()
156 while (attr != NULL) { in parse_packet_soap()
[all …]
H A Dphp_schema.c1006 if (attr) { in schema_min_max()
1013 if (attr) { in schema_min_max()
1611 if (attr) { in schema_element()
1626 if (attr) { in schema_element()
1634 if (attr) { in schema_element()
1643 if (attr) { in schema_element()
1907 attr = attr->next; in schema_attribute()
2137 if (attr->name == NULL && attr->ref != NULL) { in schema_attribute_fixup()
2142 attr->name = estrdup(attr->ref); in schema_attribute_fixup()
2514 free(attr); in delete_extra_attribute_persistent()
[all …]
/PHP-8.2/ext/oci8/tests/
H A Dconn_attr_1.phpt32 foreach($attr_array as $attr) {
33 get_attr($c,$attr);
41 foreach($attr_array as $attr) {
42 set_attr($conn1,$attr,1);
43 get_attr($conn1,$attr);
47 foreach($attr_array as $attr) {
48 set_attr($conn2,$attr,2);
49 get_attr($conn2,$attr);
53 foreach($attr_array as $attr) {
54 set_attr($conn3,$attr,3);
[all …]
/PHP-8.2/ext/simplexml/tests/
H A D012.phpt21 $sxe["attr"] = "value";
25 $sxe["attr"] = "new value";
41 <foo attr="value"/>
43 <foo attr="new value"/>

Completed in 28 milliseconds

1234567