Home
last modified time | relevance | path

Searched refs:attr (Results 51 – 75 of 208) sorted by relevance

123456789

/php-src/ext/dom/tests/modern/spec/
H A DElement_setAttributeNode_adoption.phpt14 $attr = $dom2->createAttribute("my-attribute");
15 $attr->value = "1";
17 $container->setAttributeNode($attr);
18 var_dump($attr->ownerDocument === $dom1);
22 unset($attr);
H A Ddom_parsing_gh45.phpt10 $attr = $root->firstChild->getAttributeNodeNS("u1", "name");
11 var_dump($attr->prefix, $attr->namespaceURI);
H A Ddefault_namespace_move.phpt11 $child->setAttributeNS("urn:b", "foo:attr", "value");
24 <foo:baz xmlns:foo="urn:a" xmlns:ns1="urn:b" ns1:attr="value"/>
26 <foo:baz xmlns:foo="urn:a" xmlns:ns1="urn:b" ns1:attr="value"/>
/php-src/ext/simplexml/tests/
H A Dbug62639.phpt17 <value attr="Some Attr">Some Value</value>
33 <c><value attr="Some Attr">Some Value</value></c>
47 ["attr"]=>
56 ["attr"]=>
H A D023.phpt15 <root attr='foo&nbsp;bar&nbsp;baz'></root>
21 var_dump($sxe['attr']);
27 ["attr"]=>
/php-src/ext/dom/
H A Dnamespace_compat.c271 xmlAttrPtr attr = node->properties; in php_dom_ns_compat_mark_attribute_list() local
287 if (attr != NULL) { in php_dom_ns_compat_mark_attribute_list()
288 last_added->next = attr; in php_dom_ns_compat_mark_attribute_list()
289 attr->prev = last_added; in php_dom_ns_compat_mark_attribute_list()
293 node->properties = attr; in php_dom_ns_compat_mark_attribute_list()
410 for (xmlAttrPtr attr = node->properties; attr != NULL; attr = attr->next) { in php_dom_libxml_reconcile_modern_single_element_node() local
411 if (attr->ns != NULL) { in php_dom_libxml_reconcile_modern_single_element_node()
481 for (const xmlAttr *attr = cur->properties; attr != NULL; attr = attr->next) { in php_dom_get_in_scope_ns() local
482 …if (attr->ns != NULL && attr->ns->prefix != NULL && php_dom_ns_is_fast_ex(attr->ns, php_dom_ns_is_… in php_dom_get_in_scope_ns()
483 && attr->children != NULL && attr->children->content != NULL) { in php_dom_get_in_scope_ns()
[all …]
H A Delement.c191 if (!attr) { in dom_element_id_write()
269 xmlNodePtr attr; in PHP_METHOD() local
281 if (attr) { in PHP_METHOD()
284 value = xmlNodeListGetString(attr->doc, attr->children, 1); in PHP_METHOD()
339 for (xmlAttrPtr attr = nodep->properties; attr; attr = attr->next) { in PHP_METHOD() local
423 if (!attr) { in PHP_METHOD()
463 for (xmlAttrPtr attr = current_worklist_item->current_node->properties; attr; attr = attr->next) { in dom_deep_ns_redef() local
865 xmlAttr *attr; in dom_set_attribute_ns_legacy() local
934 if (attr != NULL && attr->type != XML_ATTRIBUTE_DECL) { in dom_set_attribute_ns_legacy()
1008 for (xmlAttrPtr attr = node->properties; attr != NULL; attr = attr->next) { in dom_remove_eliminated_ns_single_element() local
[all …]
H A Dhtml_collection.c58 xmlAttrPtr attr; in dom_html_collection_named_item() local
61 …if ((attr = xmlHasNsProp(candidate, BAD_CAST "id", NULL)) != NULL && dom_compare_value(attr, BAD_C… in dom_html_collection_named_item()
68 …if ((attr = xmlHasNsProp(candidate, BAD_CAST "name", NULL)) != NULL && dom_compare_value(attr, BAD… in dom_html_collection_named_item()
/php-src/ext/pdo/tests/
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);
H A Dbug_44159.phpt21 foreach ($attrs as $attr) {
23 var_dump($pdo->setAttribute($attr, NULL));
28 var_dump($pdo->setAttribute($attr, 1));
33 var_dump($pdo->setAttribute($attr, 'nonsense'));
/php-src/ext/dom/lexbor/lexbor/html/
H A Dtoken_attr.h53 lxb_html_token_attr_clean(lxb_html_token_attr_t *attr);
56 lxb_html_token_attr_destroy(lxb_html_token_attr_t *attr,
60 lxb_html_token_attr_name(lxb_html_token_attr_t *attr, size_t *length);
/php-src/ext/dom/tests/
H A Dbug45251.phpt21 foreach ($bbb->attributes as $attr)
23 $ccc->setAttributeNode($attr);
26 echo $attr->parentNode->localName;
H A DtoString_exceptions.phpt18 '<root xmlns:ns="foo"><node attr="foo" /><node>Text</node><ns:node/><?pi foobar?></root>');
27 $attr = $attrs[0];
28 try { $attr->value = $badStr; } catch (Exception $e) { echo "Exception\n"; }
29 try { $attr->nodeValue = $badStr; } catch (Exception $e) { echo "Exception\n"; }
58 <root xmlns:ns="foo"><node attr="foo"/><node>Text</node><ns:node/><?pi foobar?></root>
H A DDOMDocument_createAttribute_variation.phpt9 $attr = $dom->createAttribute('string');
10 echo get_class($attr);
H A DDOMAttr_name_basic_001.phpt10 $attr = new DOMAttr('category', 'books');
11 print $attr->name;
H A DDOMAttr_value_basic_001.phpt10 $attr = new DOMAttr('category');
11 print $attr->value."\n";
H A Dclone_nodes.phpt13 $attr = $doc->documentElement->getAttributeNode('xmlns');
14 var_dump($attr);
16 $attrClone = clone $attr;
21 unset($attr);
/php-src/ext/xmlreader/tests/
H A D003-get-errors.phpt28 $attr = $reader->moveToNextAttribute();
29 var_dump($attr);
45 $attr = $reader->getAttribute('isbn');
46 var_dump($attr); // NULL expected
52 $attr = $reader->getAttributeNo(911);
53 var_dump($attr); // NULL expected
H A D003-move-errors.phpt28 $attr = $reader->moveToNextAttribute();
29 var_dump($attr);
45 $attr = $reader->moveToAttribute('isbn');
46 var_dump($attr);
52 $attr = $reader->moveToAttributeNo(911);
53 var_dump($attr);
H A D015.phpt26 $attr = $reader->moveToFirstAttribute();
27 $attr = $reader->moveToAttributeNs('idx', 'http://www.ns1.namespace.org/');
31 $attr = $reader->moveToAttributeNs('idx', 'http://www.ns2.namespace.org/');
35 $attr = $reader->moveToAttributeNs('isbn', 'http://www.ns2.namespace.org/');
40 $attr = $reader->moveToAttributeNs('elephpant', 'http://www.ns2.namespace.org/');
42 if (!$attr) {
H A D004.phpt22 $attr = $reader->moveToFirstAttribute();
23 while ($attr) {
26 $attr = $reader->moveToNextAttribute();
/php-src/Zend/tests/attributes/
H A D028_grouped.phpt28 $attr = $ref->getAttributes();
29 var_dump(get_class($ref), count($attr));
31 foreach ($attr as $a) {
/php-src/Zend/
H A Dzend_ast.c50 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 Dzend_call_stack.c126 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 …]
/php-src/ext/zend_test/tests/
H A Dattribute-internal-property.phpt10 $attr = $prop->getAttributes(ZendTestAttribute::class)[0];
11 var_dump($attr->getName());

Completed in 64 milliseconds

123456789