/php-src/ext/dom/tests/modern/spec/ |
H A D | Element_setAttributeNode_adoption.phpt | 14 $attr = $dom2->createAttribute("my-attribute"); 15 $attr->value = "1"; 17 $container->setAttributeNode($attr); 18 var_dump($attr->ownerDocument === $dom1); 22 unset($attr);
|
H A D | dom_parsing_gh45.phpt | 10 $attr = $root->firstChild->getAttributeNodeNS("u1", "name"); 11 var_dump($attr->prefix, $attr->namespaceURI);
|
H A D | default_namespace_move.phpt | 11 $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 D | bug62639.phpt | 17 <value attr="Some Attr">Some Value</value> 33 <c><value attr="Some Attr">Some Value</value></c> 47 ["attr"]=> 56 ["attr"]=>
|
H A D | 023.phpt | 15 <root attr='foo bar baz'></root> 21 var_dump($sxe['attr']); 27 ["attr"]=>
|
/php-src/ext/dom/ |
H A D | namespace_compat.c | 271 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 D | element.c | 191 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 D | html_collection.c | 58 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 D | pdo_test.inc | 25 $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 D | bug_44159.phpt | 21 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 D | token_attr.h | 53 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 D | bug45251.phpt | 21 foreach ($bbb->attributes as $attr) 23 $ccc->setAttributeNode($attr); 26 echo $attr->parentNode->localName;
|
H A D | toString_exceptions.phpt | 18 '<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 D | DOMDocument_createAttribute_variation.phpt | 9 $attr = $dom->createAttribute('string'); 10 echo get_class($attr);
|
H A D | DOMAttr_name_basic_001.phpt | 10 $attr = new DOMAttr('category', 'books'); 11 print $attr->name;
|
H A D | DOMAttr_value_basic_001.phpt | 10 $attr = new DOMAttr('category'); 11 print $attr->value."\n";
|
H A D | clone_nodes.phpt | 13 $attr = $doc->documentElement->getAttributeNode('xmlns'); 14 var_dump($attr); 16 $attrClone = clone $attr; 21 unset($attr);
|
/php-src/ext/xmlreader/tests/ |
H A D | 003-get-errors.phpt | 28 $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 D | 003-move-errors.phpt | 28 $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 D | 015.phpt | 26 $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 D | 004.phpt | 22 $attr = $reader->moveToFirstAttribute(); 23 while ($attr) { 26 $attr = $reader->moveToNextAttribute();
|
/php-src/Zend/tests/attributes/ |
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/ |
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_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 …]
|
/php-src/ext/zend_test/tests/ |
H A D | attribute-internal-property.phpt | 10 $attr = $prop->getAttributes(ZendTestAttribute::class)[0]; 11 var_dump($attr->getName());
|