Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 1163) sorted by relevance

12345678910>>...47

/PHP-5.5/Zend/
H A Dzend_llist.c175 element=l->head; in zend_llist_apply_with_del()
176 while (element) { in zend_llist_apply_with_del()
177 next = element->next; in zend_llist_apply_with_del()
178 if (func(element->data)) { in zend_llist_apply_with_del()
181 element = next; in zend_llist_apply_with_del()
188 zend_llist_element *element; in zend_llist_apply() local
190 for (element=l->head; element; element=element->next) { in zend_llist_apply()
210 for (element=l->head; element; element=element->next) { in zend_llist_sort()
211 *ptr++ = element; in zend_llist_sort()
233 for (element=l->head; element; element=element->next) { in zend_llist_apply_with_argument()
[all …]
H A Dzend_stack.c33 ZEND_API int zend_stack_push(zend_stack *stack, const void *element, int size) in zend_stack_push() argument
43 memcpy(stack->elements[stack->top], element, size); in zend_stack_push()
48 ZEND_API int zend_stack_top(const zend_stack *stack, void **element) in zend_stack_top() argument
51 *element = stack->elements[stack->top - 1]; in zend_stack_top()
54 *element = NULL; in zend_stack_top()
119 ZEND_API void zend_stack_apply(zend_stack *stack, int type, int (*apply_function)(void *element)) in zend_stack_apply() argument
142 …y_with_argument(zend_stack *stack, int type, int (*apply_function)(void *element, void *arg), void… in zend_stack_apply_with_argument() argument
H A Dzend_stack.h35 ZEND_API int zend_stack_push(zend_stack *stack, const void *element, int size);
36 ZEND_API int zend_stack_top(const zend_stack *stack, void **element);
43 ZEND_API void zend_stack_apply(zend_stack *stack, int type, int (*apply_function)(void *element));
44 …y_with_argument(zend_stack *stack, int type, int (*apply_function)(void *element, void *arg), void…
/PHP-5.5/tests/classes/
H A Darray_access_009.phpt10 function proxyGet($element);
12 function proxyUnset($element, $index);
18 private $element;
22 echo __METHOD__ . "($element)\n";
23 if (!$object->offsetExists($element))
25 $object[$element] = array();
28 $this->element = $element;
82 function proxyGet($element)
84 return $this->person[$element];
144 ["element":"ArrayProxy":private]=>
[all …]
H A Darray_access_011.phpt12 private $element;
16 echo __METHOD__ . "($element)\n";
19 $this->element = $element;
23 echo __METHOD__ . "($this->element, $index)\n";
28 echo __METHOD__ . "($this->element, $index)\n";
29 …return isset($this->oarray[$this->element][$index]) ? $this->oarray[$this->element][$index] : NULL;
34 $this->oarray[$this->element][$index] = $value;
38 echo __METHOD__ . "($this->element, $index)\n";
39 unset($this->oarray[$this->element][$index]);
135 ["element":"ArrayAccessReferenceProxy":private]=>
[all …]
H A Darray_access_010.phpt11 private $element;
13 function __construct(ArrayAccess $object, array &$element)
17 $this->element = &$element;
21 echo __METHOD__ . "($this->element, $index)\n";
22 return array_key_exists($index, $this->element);
27 return isset($this->element[$index]) ? $this->element[$index] : NULL;
32 $this->element[$index] = $value;
37 unset($this->element[$index]);
118 ["element":"ArrayReferenceProxy":private]=>
156 ["element":"ArrayReferenceProxy":private]=>
/PHP-5.5/ext/spl/tests/
H A DarrayObject_clone_basic1.phpt7 $a['p1'] = 'new element added to a before clone';
11 $a['p2'] = 'new element added to a after clone';
12 $aa1['new.aa1'] = 'new element added to aa1';
13 $aa2['new.aa2'] = 'new element added to aa2';
23 string(35) "new element added to a before clone"
25 string(34) "new element added to a after clone"
35 string(24) "new element added to aa1"
46 string(24) "new element added to aa2"
H A DarrayObject_exchangeArray_basic1.phpt10 $ao['a'] = 'adding element to $ao';
11 $swapIn['b'] = 'adding element to $swapIn';
12 $ao['c'] = 'adding another element to $ao';
26 string(25) "adding element to $swapIn"
36 string(21) "adding element to $ao"
38 string(29) "adding another element to $ao"
H A DarrayObject_clone_basic3.phpt18 $innerArrayObject['new.iAO'] = 'new element added $innerArrayObject';
19 $outerArrayObject['new.oAO'] = 'new element added to $outerArrayObject';
20 $clonedOuterArrayObject['new.coAO'] = 'new element added to $clonedOuterArrayObject';
33 string(35) "new element added $innerArrayObject"
35 string(38) "new element added to $outerArrayObject"
47 string(35) "new element added $innerArrayObject"
49 string(38) "new element added to $outerArrayObject"
64 string(35) "new element added $innerArrayObject"
66 string(38) "new element added to $outerArrayObject"
78 string(44) "new element added to $clonedOuterArrayObject"
H A DarrayObject_exchangeArray_basic2.phpt19 $obj = new ArrayObject(array('key'=>'ArrayObject element'));
25 $obj = new ArrayIterator(array('key'=>'ArrayIterator element'));
31 $obj = new ArrayObject(new ArrayObject(array('key'=>'nested ArrayObject element')));
58 string(19) "ArrayObject element"
65 string(19) "ArrayObject element"
71 string(21) "ArrayIterator element"
78 string(21) "ArrayIterator element"
84 string(26) "nested ArrayObject element"
93 string(26) "nested ArrayObject element"
H A DarrayObject_setFlags_basic1.phpt19 $ao = new C(array('p'=>'array element'));
25 echo "\n--> Remove the real property and access the array element:\n";
29 echo "\n--> Remove the array element and try access again:\n";
39 --> Remove the real property and access the array element:
41 string(13) "array element"
42 string(21) "array element.changed"
44 --> Remove the array element and try access again:
H A Drecursiveiteratoriterator_nextelement_basic.phpt2 SPL: RecursiveIteratorIterator::nextElement() is called when the next element is ready
12 foreach ($iterator as $element) {
13 var_dump($element);
22 foreach ($iterator as $element) {
23 var_dump($element);
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 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";
38 --> Remove the real property and access the array element:
40 %unicode|string%(13) "array element"
42 --> Remove the array element and try access again:
H A Drecursiveiteratoriterator_enditeration_basic.phpt12 foreach ($iterator as $element) {
13 var_dump($element);
22 foreach ($iterator as $element) {
23 var_dump($element);
/PHP-5.5/ext/spl/
H A Dspl_observer.c188 zval_ptr_dtor(&element->obj); in spl_object_storage_dtor()
196 return element; in spl_object_storage_get()
226 element.obj = obj; in spl_object_storage_attach()
227 element.inf = inf; in spl_object_storage_attach()
251 spl_object_storage_attach(intern, this, element->obj, element->inf TSRMLS_CC); in spl_object_storage_addall()
511 if (!element) { in SPL_METHOD()
711 element->inf = inf; in SPL_METHOD()
1091 it = element->obj; in SPL_METHOD()
1114 it = element->obj; in SPL_METHOD()
1144 it = element->obj; in SPL_METHOD()
[all …]
/PHP-5.5/ext/spl/internal/
H A Dsplobjectstorage.inc53 $element = current($this->storage);
54 return $element ? $element[0] : NULL
62 $element = current($this->storage);
63 return $element ? $element[1] : NULL
76 /** Forward to next element
98 foreach($this->storage as $element)
100 if ($object === $element[0])
127 foreach($this->storage as $idx => $element)
129 if ($object === $element[0])
161 if ($object === $element[0])
[all …]
/PHP-5.5/Zend/tests/
H A Dbug32674.phpt21 $element = current($this->_elements);
22 return $element;
26 $element = next($this->_elements);
27 return $element;
32 $element = key($this->_elements);
33 return $element;
/PHP-5.5/ext/dom/tests/
H A DDOMElement_hasAttributes_basic.phpt19 $element = $dom->documentElement;
22 echo get_class($element), "\n";
25 var_dump($element->hasAttributes());
28 $element = $nodelist->item(0);
31 echo get_class($element), "\n";
34 var_dump($element->hasAttributes());
H A DDOMDocument_relaxNGValidateSource_error1.phpt16 <element name="apple">
17 <element name="pear">
19 </element>
20 </element>
40 Warning: DOMDocument::relaxNGValidateSource(): Did not expect element pear there in %s on line %d
H A DDOMDocument_relaxNGValidateSource_basic.phpt16 <element name="apple">
17 <element name="pear">
19 </element>
20 </element>
/PHP-5.5/ext/standard/tests/array/
H A Dreset_variation2.phpt2 Test reset() function : usage variations - unset first element
6 * Description: Set array argument's internal pointer to the first element and return it
11 * Unset first element of an array and test behaviour of reset()
21 echo "\n-- Unset First element in array and check reset() --\n";
32 -- Unset First element in array and check reset() --
H A Darray_shift_variation8.phpt6 * Description: Pops an element off the beginning of the array
14 * it will return a *copy* of the first element of the array,
15 * and not the element itself, so your reference will be lost.
16 * The solution is to reference the first element before removing it with array_shift():
29 // solution: referencing the first element first:
30 echo "\n-- Reference first element before array_shift: --\n";
48 -- Reference first element before array_shift: --
/PHP-5.5/tests/lang/
H A DforeachLoop.012.phpt74 ---( Array with 1 element(s): )---
86 ---( Array with 2 element(s): )---
101 ---( Array with 3 element(s): )---
119 ---( Array with 4 element(s): )---
143 ---( Array with 1 element(s): )---
155 ---( Array with 2 element(s): )---
170 ---( Array with 3 element(s): )---
188 ---( Array with 4 element(s): )---
212 ---( Array with 1 element(s): )---
224 ---( Array with 2 element(s): )---
[all …]
/PHP-5.5/ext/soap/tests/schema/
H A Dschema035.phpt2 SOAP XML Schema 35: Nested complex types (element ref + anonymous type)
9 <element name="testType2">
12 <element name="int" type="int"/>
15 </element>
18 <element name="int" type="int"/>
19 <element ref="tns:testType2"/>

Completed in 39 milliseconds

12345678910>>...47