Home
last modified time | relevance | path

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

123456

/PHP-8.1/Zend/
H A Dzend_attributes.c34 if (attr->argc > 0) { in validate_attribute()
79 zend_attribute *attr; in get_attribute() local
82 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute()
83 return attr; in get_attribute()
97 if (attr->offset == offset && ZSTR_LEN(attr->lcname) == len) { in get_attribute_str()
99 return attr; in get_attribute_str()
177 if (other != attr && other->offset == attr->offset) { in zend_is_attribute_repeated()
225 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute()
226 attr->flags = flags; in zend_add_attribute()
229 attr->argc = argc; 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.1/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 …]
H A D027_trailing_comma_args.phpt15 $attr = $ref->getAttributes()[0];
16 var_dump($attr->getName(), $attr->getArguments());
/PHP-8.1/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.1/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.1/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.1/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 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 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 Dbug61858.phpt11 $attr = $example->getAttributeNode('a');
13 var_dump($attr);
14 print_r($attr);
/PHP-8.1/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.1/ext/pdo/tests/
H A Dpdo_039.phpt19 $attr = getenv('PDOTEST_ATTR');
20 if (is_string($attr) && strlen($attr)) {
21 $attr = unserialize($attr);
23 $attr = null;
29 $conn = new PDO($dsn, $user, $pass, $attr);
H A Dpdo_test.inc25 $attr = getenv('PDOTEST_ATTR');
26 if (is_string($attr) && strlen($attr)) {
27 $attr = unserialize($attr);
29 $attr = null;
35 $db = new $classname($dsn, $user, $pass, $attr);
/PHP-8.1/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.c985 if (attr) { in schema_min_max()
992 if (attr) { in schema_min_max()
1590 if (attr) { in schema_element()
1605 if (attr) { in schema_element()
1613 if (attr) { in schema_element()
1622 if (attr) { in schema_element()
1886 attr = attr->next; in schema_attribute()
2116 if (attr->name == NULL && attr->ref != NULL) { in schema_attribute_fixup()
2121 attr->name = estrdup(attr->ref); in schema_attribute_fixup()
2493 free(attr); in delete_extra_attribute_persistent()
[all …]
/PHP-8.1/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.1/ext/simplexml/tests/
H A D012.phpt21 $sxe["attr"] = "value";
25 $sxe["attr"] = "new value";
41 <foo attr="value"/>
43 <foo attr="new value"/>
H A D020.phpt8 $doc = simplexml_load_string('<root><name attr="foo">bar</name></root>');
9 print $doc->name["attr"];
11 if ($doc->name["attr"] == "foo") {
/PHP-8.1/ext/tokenizer/tests/
H A Dattributes.phpt10 $attr = $tokens[1];
12 var_dump($attr[0] === T_ATTRIBUTE);
13 var_dump($attr[1]);

Completed in 41 milliseconds

123456