Home
last modified time | relevance | path

Searched refs:element (Results 126 – 150 of 878) sorted by relevance

12345678910>>...36

/php-src/ext/dom/tests/
H A DDOM4_DOMNode_remove.phpt12 $element = $dom->documentElement;
13 print_node($element->firstChild);
14 $returnValue = $element->firstChild->remove();
15 print_node($element->firstChild);
H A Dreconcile_reused_namespace.phpt22 $element = $dom->createElementNS('http://example.com/B', 'p', 'Hello World');
23 $root->appendChild($element);
26 $element = $dom->createElementNS('http://example.com/A', 'p', 'Hello World');
27 $root->appendChild($element);
30 $element = $dom->createElementNS('http://example.com/A', 'p', 'Hello World');
31 $root->appendChild($element);
H A DDOM4_DOMNode_removeDanglingElement.phpt2 DOMNode::remove() dangling element
10 $element = $dom->createElement('test');
13 $element->remove();
H A DDOMDocument_relaxNGValidateSource_basic.phpt14 <element name="apple">
15 <element name="pear">
17 </element>
18 </element>
H A Dbug67440.phpt50 echo "-- fragment to document element --\n"; case1('appendChild'); echo "\n";
56 echo "-- fragment to document element --\n"; case1('insertBefore'); echo "\n";
70 -- fragment to document element --
77 -- children manually document element --
84 -- fragment to document where first element is not a text node --
98 -- fragment to document element --
105 -- children manually document element --
112 -- fragment to document where first element is not a text node --
126 -- fragment to document element --
133 -- children manually document element --
[all …]
/php-src/Zend/tests/
H A Darray_merge_recursive_next_key_overflow.phpt24 Cannot add element to the array as the next element is already occupied
25 Cannot add element to the array as the next element is already occupied
H A Dassign_ref_error_var_handling.phpt27 Cannot add element to the array as the next element is already occupied
29 Cannot add element to the array as the next element is already occupied
/php-src/ext/dom/tests/modern/spec/
H A DNode_replaceChild_edge_cases.phpt55 echo "--- Replace element with text in document root ---\n";
63 echo "--- Replace child element with doctype inside element ---\n";
92 echo "--- Replace dtd with element ---\n";
100 echo "--- Replace element with another dtd ---\n";
131 --- Replace element with text in document root ---
133 --- Replace child element with doctype inside element ---
136 Cannot have more than one element child in a document
138 Cannot have more than one element child in a document
139 --- Replace dtd with element ---
140 Cannot have more than one element child in a document
[all …]
H A DNode_isDefaultNamespace.phpt31 echo "--- svg element ---\n";
33 echo "--- math element ---\n";
46 $element = $dom->createElementNS('urn:a', 'q:name');
47 $element->setAttributeNS("urn:x", "x:foo", "");
48 $element->setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:q", "urn:test");
49 $element->setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", "urn:test2");
50 var_dump($element->isDefaultNamespace('urn:a'));
51 var_dump($element->isDefaultNamespace('urn:test'));
52 var_dump($element->isDefaultNamespace('urn:test2'));
63 --- svg element ---
[all …]
H A DElement_getAttributeNode.phpt30 $element = $dom->createElementNS("urn:a", "a:element");
32 $element->setAttributeNode($attr);
34 var_dump($element->getAttributeNode("Prefix:local2")->textContent);
35 var_dump($element->getAttributeNode("Prefix:LOCAL2"));
36 var_dump($element->getAttributeNode("prefix:local2"));
H A DElement_hasAttribute.phpt30 $element = $dom->createElementNS("urn:a", "a:element");
32 $element->setAttributeNode($attr);
34 var_dump($element->hasAttribute("Prefix:local2"));
35 var_dump($element->hasAttribute("Prefix:LOCAL2"));
36 var_dump($element->hasAttribute("prefix:local2"));
H A DElement_getAttribute.phpt30 $element = $dom->createElementNS("urn:a", "a:element");
32 $element->setAttributeNode($attr);
34 var_dump($element->getAttribute("Prefix:local2"));
35 var_dump($element->getAttribute("Prefix:LOCAL2"));
36 var_dump($element->getAttribute("prefix:local2"));
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/
H A Dprocessing_instruction.c14 lxb_dom_processing_instruction_t *element; in lxb_dom_processing_instruction_interface_create() local
16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_processing_instruction_interface_create()
18 if (element == NULL) { in lxb_dom_processing_instruction_interface_create()
22 lxb_dom_node_t *node = lxb_dom_interface_node(element); in lxb_dom_processing_instruction_interface_create()
27 return element; in lxb_dom_processing_instruction_interface_create()
/php-src/ext/spl/tests/
H A Drecursiveiteratoriterator_beginiteration_basic.phpt12 foreach ($iterator as $element) {
13 var_dump($element);
23 foreach ($iterator as $element) {
24 var_dump($element);
H A Drecursiveiteratoriterator_enditeration_basic.phpt12 foreach ($iterator as $element) {
13 var_dump($element);
22 foreach ($iterator as $element) {
23 var_dump($element);
H A Dbug45622.phpt10 $ao = new C(array('p'=>'array element'));
17 echo "\n--> Remove the real property and access the array element:\n";
22 echo "\n--> Remove the array element and try access again:\n";
37 --> Remove the real property and access the array element:
39 string(13) "array element"
41 --> Remove the array element and try access again:
/php-src/ext/standard/tests/array/
H A Dend_64bit.phpt28 /* loop through $arrays to print the last element of each sub-array */
34 /* ensure that internal pointer is moved to last element */
49 // remove first element from array
50 echo "\n-- Remove first element from array --\n";
54 // remove last element from array, rewind and check end()
55 echo "\n-- Remove last element from array --\n";
61 // remove any element !first, !last, rewind and check end()
62 echo "\n-- Remove any element from array apart from first and last element --\n";
171 -- Remove first element from array --
174 -- Remove last element from array --
[all …]
H A Dreset_variation2.phpt2 Test reset() function : usage variations - unset first element
6 * Unset first element of an array and test behaviour of reset()
16 echo "\n-- Unset First element in array and check reset() --\n";
26 -- Unset First element in array and check reset() --
H A Dend.phpt28 /* loop through $arrays to print the last element of each sub-array */
34 /* ensure that internal pointer is moved to last element */
49 // remove first element from array
50 echo "\n-- Remove first element from array --\n";
54 // remove last element from array, rewind and check end()
55 echo "\n-- Remove last element from array --\n";
61 // remove any element !first, !last, rewind and check end()
62 echo "\n-- Remove any element from array apart from first and last element --\n";
176 -- Remove first element from array --
179 -- Remove last element from array --
[all …]
H A Darray_shift_variation8.phpt9 * it will return a *copy* of the first element of the array,
10 * and not the element itself, so your reference will be lost.
11 * The solution is to reference the first element before removing it with array_shift():
24 // solution: referencing the first element first:
25 echo "\n-- Reference first element before array_shift: --\n";
43 -- Reference first element before array_shift: --
/php-src/ext/soap/tests/schema/
H A Dschema035.phpt2 SOAP XML Schema 35: Nested complex types (element ref + anonymous type)
10 <element name="testType2">
13 <element name="int" type="int"/>
16 </element>
19 <element name="int" type="int"/>
20 <element ref="tns:testType2"/>
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/
H A Din_frameset.c66 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_in_frameset() local
68 element = lxb_html_tree_insert_html_element(tree, token); in lxb_html_tree_insertion_mode_in_frameset()
69 if (element == NULL) { in lxb_html_tree_insertion_mode_in_frameset()
79 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_in_frameset() local
81 element = lxb_html_tree_insert_html_element(tree, token); in lxb_html_tree_insertion_mode_in_frameset()
82 if (element == NULL) { in lxb_html_tree_insertion_mode_in_frameset()
/php-src/TSRM/
H A DTSRM.h166 #define TSRMG(id, type, element) (TSRMG_BULK(id, type)->element) argument
168 #define TSRMG_FAST(offset, type, element) (TSRMG_FAST_BULK(offset, type)->element) argument
171 #define TSRMG_STATIC(id, type, element) (TSRMG_BULK_STATIC(id, type)->element) argument
173 #define TSRMG_FAST_STATIC(offset, type, element) (TSRMG_FAST_BULK_STATIC(offset, type)->element) argument
191 #define TSRMG_STATIC(id, type, element) argument
/php-src/ext/spl/
H A Dspl_dllist.c700 if (element == NULL) { in PHP_METHOD()
771 if (element != NULL) { in PHP_METHOD()
773 if (element->prev) { in PHP_METHOD()
774 element->prev->next = element->next; in PHP_METHOD()
777 if (element->next) { in PHP_METHOD()
778 element->next->prev = element->prev; in PHP_METHOD()
892 if (element == NULL || Z_ISUNDEF(element->data)) { in spl_dllist_it_get_current_data()
896 return &element->data; in spl_dllist_it_get_current_data()
992 if (element == NULL || Z_ISUNDEF(element->data)) { in PHP_METHOD()
1191 elem->next = element; in PHP_METHOD()
[all …]
/php-src/tests/lang/
H A DforeachLoop.012.phpt73 ---( Array with 1 element(s): )---
85 ---( Array with 2 element(s): )---
100 ---( Array with 3 element(s): )---
118 ---( Array with 4 element(s): )---
142 ---( Array with 1 element(s): )---
154 ---( Array with 2 element(s): )---
169 ---( Array with 3 element(s): )---
187 ---( Array with 4 element(s): )---
211 ---( Array with 1 element(s): )---
223 ---( Array with 2 element(s): )---
[all …]

Completed in 44 milliseconds

12345678910>>...36