Home
last modified time | relevance | path

Searched refs:current (Results 51 – 75 of 580) sorted by relevance

12345678910>>...24

/php-src/ext/spl/tests/
H A Diterator_014.phpt42 function current(): mixed
45 return parent::current();
79 RecursiveArrayIteratorIterator::current
86 RecursiveArrayIteratorIterator::current
93 RecursiveArrayIteratorIterator::current
98 RecursiveArrayIteratorIterator::current
109 RecursiveArrayIteratorIterator::current
122 RecursiveArrayIteratorIterator::current
129 RecursiveArrayIteratorIterator::current
H A Diterator_022.phpt11 return $this->current();
58 function current(): mixed
61 return parent::current();
132 RecursiveArrayIteratorIterator::current
138 RecursiveArrayIteratorIterator::current
142 RecursiveArrayIteratorIterator::current
148 RecursiveArrayIteratorIterator::current
152 RecursiveArrayIteratorIterator::current
158 RecursiveArrayIteratorIterator::current
166 RecursiveArrayIteratorIterator::current
[all …]
H A Dbug72051.phpt10 $callbackTest = new CallbackFilterIterator(new ArrayIterator($data), function (&$current) {
11 $current['message'] = 'Test message';
16 $data = $callbackTest->current();
21 Warning: {closure:%s:%d}(): Argument #1 ($current) must be passed by reference, value given in %s o…
H A Diterator_039.phpt35 public function current(): mixed
74 NumericArrayIterator::current
80 NumericArrayIterator::current
86 NumericArrayIterator::current
92 NumericArrayIterator::current
106 NumericArrayIterator::current
113 NumericArrayIterator::current
H A Dbug66405.phpt16 public function current(): string|SplFileInfo|FilesystemIterator
18 $current = parent::current();
19 echo gettype($current) . " $current\n";
20 return $current;
H A Ddualiterator.inc69 /** @return current flags
91 /** @return current value depending on CURRENT_* flags
93 function current(): mixed
99 return array($this->lhs->current(), $this->rhs->current());
101 return $this->lhs->current();
103 return $this->rhs->current();
134 * current and key values or both are non valid.
139 ? $this->lhs->current() === $this->rhs->current()
144 /** @return whether both inner iterators are valid and have equal current
150 ? $this->lhs->current() == $this->rhs->current()
/php-src/ext/date/tests/
H A DDatePeriod_set_state_exception.phpt8 …-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16:49:29"), 'current' => new \DateTime…
12 'start' => null, 'end' => null, 'current' => null,
17 …1-13 12:29:30", 'end' => new \DateTimeImmutable("2023-01-16 16:49:29"), 'current' => new \DateTime…
21 …teTimeImmutable("2023-01-13 12:29:30"), 'end' => "2023-01-16 16:49:29", 'current' => new \DateTime…
25 …-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16:49:29"), 'current' => "2023-01-15 0…
29 …-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16:49:29"), 'current' => new \DateTime…
33 …-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16:49:29"), 'current' => new \DateTime…
37 …-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16:49:29"), 'current' => new \DateTime…
41 …-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16:49:29"), 'current' => new \DateTime…
H A Ddate_diff.phpt35 $current = clone $dates[$i];
37 if ( $current > $dates[$j] )
39 $current->sub( $int );
43 $current->add( $int );
45 if ( $current != $dates[$j] )
50 $current->format( 'Y-m-d' ), " (",
H A DDateTime_createFromImmutable-001.phpt7 $current = "2014-03-02 16:24:08";
8 $i = date_create_immutable( $current );
15 var_dump( $i->format('Y-m-d H:i:s') === $current );
18 DateTime::createFromImmutable( date_create( $current ) );
/php-src/ext/standard/tests/streams/
H A Dbug61371.phpt7 $current = null;
9 $current = memory_get_usage(true);
11 var_dump($previous == $current);
13 $previous = $current;
14 echo 'memory: '.round($current / 1024, 0)."kb\n";
H A Dbug61371-unix.phpt13 $current = null;
15 $current = memory_get_usage(true);
17 var_dump($previous == $current);
19 $previous = $current;
20 echo 'memory: '.round($current / 1024, 0)."kb\n";
/php-src/Zend/tests/
H A Dbug73753.phpt5 function iterate($current, $a, $result = null) {
6 if (!$current) {
10 return iterate(getNext($a), $a, $current);
18 return current($a);
/php-src/ext/spl/tests/SplFileObject/
H A DSplFileObject_next_variation002.phpt15 echo $s->current();
17 echo $s->current();
22 echo $s->current();
24 echo $s->current();
/php-src/tests/classes/
H A Diterators_006.phpt10 private $current;
29 function current(): mixed {
30 return $this->current;
35 $this->current = current($this->array);
57 #var_dump($array->current());
/php-src/ext/opcache/tests/jit/
H A Dpreload_bug80634.inc3 public ?DateTimeInterface $current;
7 $this->current = $v;
8 var_dump($this->current);
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/
H A Din_table_body.c14 lxb_dom_node_t *current = lxb_html_tree_current_node(tree); in lxb_html_tree_clear_stack_back_to_table_body() local
16 while ((current->local_name != LXB_TAG_TBODY in lxb_html_tree_clear_stack_back_to_table_body()
17 && current->local_name != LXB_TAG_TFOOT in lxb_html_tree_clear_stack_back_to_table_body()
18 && current->local_name != LXB_TAG_THEAD in lxb_html_tree_clear_stack_back_to_table_body()
19 && current->local_name != LXB_TAG_TEMPLATE in lxb_html_tree_clear_stack_back_to_table_body()
20 && current->local_name != LXB_TAG_HTML) in lxb_html_tree_clear_stack_back_to_table_body()
21 || current->ns != LXB_NS_HTML) in lxb_html_tree_clear_stack_back_to_table_body()
24 current = lxb_html_tree_current_node(tree); in lxb_html_tree_clear_stack_back_to_table_body()
/php-src/tests/lang/
H A Dbug55754.phpt6 current($arr = array(0 => "a"));
7 current(array(0 => "a"));
8 current($arr);
H A DforeachLoopIteratorAggregate.004.phpt23 function current(): mixed {
73 c_iter::current
79 c_iter::current
83 c_iter::current
89 c_iter::current
93 c_iter::current
99 c_iter::current
H A Dbug23624.phpt2 Bug #23624 (foreach leaves current array key as null)
6 var_dump(current($arr));
8 var_dump(current($arr));
/php-src/ext/simplexml/tests/
H A Dcurrent_error.phpt2 SimpleXML: invoking current() after the iterator has already been consumed
18 $sxe->current();
24 var_dump($sxe->key(), $sxe->current());
28 $sxe->current();
/php-src/ext/zend_test/tests/iterators/
H A Ddouble-rewind.phpt20 TraversableTest::current
25 TraversableTest::current
30 TraversableTest::current
35 TraversableTest::current
/php-src/Zend/tests/generators/
H A Dbug70904.phpt20 var_dump($g2->current());
24 var_dump($g2->current());
27 var_dump($g2->current());
30 var_dump($g2->current());
/php-src/ext/phar/tests/
H A Dphar_buildfromiterator5.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return is_object(current($this->a));
50 current
H A Dphar_buildfromiterator6.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return current($this->a);
50 current
/php-src/ext/phar/tests/tar/
H A Dphar_buildfromiterator4.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return current($this->a);
51 current

Completed in 45 milliseconds

12345678910>>...24