/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | attr.c | 28 lxb_dom_attr_t *attr; in lxb_dom_attr_interface_create() local 31 if (attr == NULL) { in lxb_dom_attr_interface_create() 40 return attr; in lxb_dom_attr_interface_create() 88 if (attr->value == NULL) { in lxb_dom_attr_interface_clone() 114 value = attr->value; in lxb_dom_attr_interface_destroy() 338 if (attr->prev != NULL) { in lxb_dom_attr_remove() 339 attr->prev->next = attr->next; in lxb_dom_attr_remove() 346 attr->next->prev = attr->prev; in lxb_dom_attr_remove() 352 attr->next = NULL; in lxb_dom_attr_remove() 353 attr->prev = NULL; in lxb_dom_attr_remove() [all …]
|
H A D | element.c | 82 attr = attr_next; in lxb_dom_element_interface_destroy() 112 attr = attr->next; in lxb_dom_element_interface_copy() 258 if (attr != NULL) { in lxb_dom_element_set_attribute() 264 return attr; in lxb_dom_element_set_attribute() 268 if (attr == NULL) { in lxb_dom_element_set_attribute() 294 return attr; in lxb_dom_element_set_attribute() 305 if (attr == NULL) { in lxb_dom_element_get_attribute() 434 attr = attr->next; in lxb_dom_element_attr_by_name() 451 attr = attr->next; in lxb_dom_element_attr_by_local_name_data() 468 attr = attr->next; in lxb_dom_element_attr_by_id() [all …]
|
H A D | attr.h | 56 const lxb_dom_attr_t *attr); 59 lxb_dom_attr_interface_destroy(lxb_dom_attr_t *attr); 66 lxb_dom_attr_set_value(lxb_dom_attr_t *attr, 70 lxb_dom_attr_set_value_wo_copy(lxb_dom_attr_t *attr, 74 lxb_dom_attr_set_existing_value(lxb_dom_attr_t *attr, 85 lxb_dom_attr_remove(lxb_dom_attr_t *attr); 109 lxb_dom_attr_local_name(lxb_dom_attr_t *attr, size_t *len) in lxb_dom_attr_local_name() argument 124 lxb_dom_attr_value(lxb_dom_attr_t *attr, size_t *len) in lxb_dom_attr_value() argument 126 if (attr->value == NULL) { in lxb_dom_attr_value() 135 *len = attr->value->length; in lxb_dom_attr_value() [all …]
|
/php-src/ext/dom/lexbor/lexbor/html/ |
H A D | token.c | 40 if (attr == NULL) { in lxb_html_token_attr_append() 48 return attr; in lxb_html_token_attr_append() 56 return attr; in lxb_html_token_attr_append() 71 attr->next->prev = attr->prev; in lxb_html_token_attr_remove() 75 attr->prev->next = attr->next; in lxb_html_token_attr_remove() 78 attr->next = NULL; in lxb_html_token_attr_remove() 79 attr->prev = NULL; in lxb_html_token_attr_remove() 276 attr = attr->next; in lxb_html_token_doctype_parse() 277 if (attr == NULL) { in lxb_html_token_doctype_parse() 314 attr = attr->next; in lxb_html_token_doctype_parse() [all …]
|
H A D | token_attr.c | 17 lxb_html_token_attr_clean(lxb_html_token_attr_t *attr) in lxb_html_token_attr_clean() argument 19 memset(attr, 0, sizeof(lxb_html_token_attr_t)); in lxb_html_token_attr_clean() 23 lxb_html_token_attr_destroy(lxb_html_token_attr_t *attr, lexbor_dobject_t *dobj) in lxb_html_token_attr_destroy() argument 25 return lexbor_dobject_free(dobj, attr); in lxb_html_token_attr_destroy() 29 lxb_html_token_attr_name(lxb_html_token_attr_t *attr, size_t *length) in lxb_html_token_attr_name() argument 31 if (attr->name == NULL) { in lxb_html_token_attr_name() 40 *length = attr->name->entry.length; in lxb_html_token_attr_name() 43 return lexbor_hash_entry_str(&attr->name->entry); in lxb_html_token_attr_name()
|
/php-src/Zend/tests/attributes/ |
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 | 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 | 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 …]
|
/php-src/Zend/ |
H A D | zend_attributes.c | 42 if (attr->argc > 0) { in zend_attribute_attribute_get_flags() 199 zend_attribute *attr; in get_attribute() local 202 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute() 203 return attr; in get_attribute() 214 zend_attribute *attr; in get_attribute_str() local 218 return attr; in get_attribute_str() 382 if (other != attr && other->offset == attr->offset) { in zend_is_attribute_repeated() 430 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute() 431 attr->flags = flags; in zend_add_attribute() 434 attr->argc = argc; in zend_add_attribute() [all …]
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | dump_attr.inc | 2 function dumpAttr(DOM\Attr $attr) { 3 echo "Attr: {$attr->name}\n"; 4 var_dump($attr->prefix); 5 var_dump($attr->nodeName); 6 var_dump($attr->namespaceURI); 10 foreach ($element->attributes as $attr) { 11 dumpAttr($attr);
|
H A D | attribute_entity_expansion.phpt | 13 $attr = $elt->getAttributeNode('a'); 14 $attr->value = '&'; 15 print "$attr->value\n"; 18 $attr->removeChild($attr->firstChild); 21 $attr->nodeValue = '&'; 22 print "$attr->nodeValue\n"; 25 $attr->nodeValue = '&'; 26 print "$attr->nodeValue\n"; 29 $elt->removeAttributeNode($attr); 34 $attr->value = '<&'; [all …]
|
H A D | attribute_entity_expansion_legacy.phpt | 13 $attr = $elt->getAttributeNode('a'); 14 $attr->value = '&'; 15 print "$attr->value\n"; 18 $attr->removeChild($attr->firstChild); 22 @$attr->nodeValue = '&'; 23 print "$attr->nodeValue\n"; 26 $attr->nodeValue = '&'; 27 print "$attr->nodeValue\n"; 30 $elt->removeAttributeNode($attr); 35 $attr->value = '<&'; [all …]
|
H A D | Document_createAttribute.phpt | 12 $attr = $dom->createAttribute('foo'); 13 dumpAttr($attr); 14 $attr = $dom->createAttribute('FoOo'); 15 dumpAttr($attr); 20 $attr = $dom->createAttribute('foo'); 21 dumpAttr($attr); 22 $attr = $dom->createAttribute('FoOo'); 23 dumpAttr($attr);
|
H A D | import_of_lone_attribute.phpt | 12 $attr = $root->getAttributeNodeNS("urn:a", "foo"); 15 $attr = $importer->importNode($attr, true); 16 echo $importer->saveXml($attr), "\n"; 21 var_dump($attr->prefix, $attr->namespaceURI);
|
/php-src/ext/pdo_mysql/tests/ |
H A D | bug_61411.phpt | 14 $attr = PDO_MYSQL_TEST_ATTR; 15 if (!$attr) { 16 $attr = array(); 18 $attr = unserialize($attr); 20 $attr[PDO::ATTR_PERSISTENT] = true; 21 $attr[PDO::ATTR_EMULATE_PREPARES] = false; 22 $attr[PDO::ATTR_STRINGIFY_FETCHES] = true; 24 $db = MySQLPDOTest::factoryWithAttr($attr);
|
H A D | bug_74376.phpt | 14 $attr = PDO_MYSQL_TEST_ATTR; 15 $attr = $attr ? unserialize($attr) : []; 16 $attr[PDO::ATTR_PERSISTENT] = true; 17 $attr[PDO::ATTR_EMULATE_PREPARES] = false; 19 $db = MySQLPDOTest::factoryWithAttr($attr);
|
/php-src/ext/dom/tests/manually_call_constructor/ |
H A D | attribute.phpt | 8 $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-src/ext/dom/tests/ |
H A D | replaceChild_attribute_validation.phpt | 9 $attr = $dom->createAttribute('attr'); 10 $attr->textContent = "test"; 13 $attr->replaceChild($dom->createProcessingInstruction('pi'), $attr->firstChild); 19 $root->setAttributeNode($attr); 27 <root attr="test"/>
|
H A D | register_node_class.phpt | 23 $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 D | gh12870.inc | 9 $attr = $d->createAttributeNS($uri, $qualifiedName); 10 $d->documentElement->setAttributeNodeNS($attr); 12 var_dump($attr->prefix); 14 var_dump($attr->namespaceURI); 16 var_dump($attr->value); 21 … var_dump($attr === $d->documentElement->getAttributeNodeNS($uri, $parts[count($parts) - 1]));
|
/php-src/ext/zend_test/tests/ |
H A D | attribute-promotion-parameter-only.phpt | 16 $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 D | attribute-promotion-property-only.phpt | 16 $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-src/ext/xmlreader/tests/ |
H A D | 003-mb.phpt | 22 $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 D | 003.phpt | 22 $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-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());
|