Home
last modified time | relevance | path

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

12345678910>>...22

/PHP-8.1/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-8.1/ext/standard/tests/streams/
H A Dbug61371-unix.phpt12 $current = null;
14 $current = memory_get_usage(true);
16 var_dump($previous == $current);
18 $previous = $current;
19 echo 'memory: '.round($current / 1024, 0)."kb\n";
/PHP-8.1/ext/spl/tests/
H A DSplFileObject_next_variation002.phpt15 echo $s->current();
17 echo $s->current();
22 echo $s->current();
24 echo $s->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 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 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()
H A Diterator_034.phpt58 function current(): mixed
61 return parent::current();
117 var_dump($it->current() == "a");
126 RecursiveArrayIteratorIterator::current()
136 RecursiveArrayIteratorIterator::current()
146 RecursiveArrayIteratorIterator::current()
152 RecursiveArrayIteratorIterator::current()
164 RecursiveArrayIteratorIterator::current()
170 RecursiveArrayIteratorIterator::current()
184 RecursiveArrayIteratorIterator::current()
/PHP-8.1/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-8.1/ext/date/tests/
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 ) );
H A DDateTime_createFromImmutable-002.phpt9 $current = "2014-03-02 16:24:08";
10 $i = date_create_immutable( $current );
17 var_dump( $i->format('Y-m-d H:i:s') === $current );
20 MyDateTime::createFromImmutable( date_create( $current ) );
/PHP-8.1/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-8.1/ext/zend_test/tests/iterators/
H A Ddouble-rewind.phpt20 TraversableTest::current
25 TraversableTest::current
30 TraversableTest::current
35 TraversableTest::current
/PHP-8.1/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-8.1/ext/standard/tests/strings/
H A Dstr_replace_array_refs2.phpt7 $current = &$array;
9 $current = &$current[$key];
10 $current = $value;
/PHP-8.1/tests/classes/
H A Diterators_002.phpt23 function current(): mixed {
76 c_iter::current
82 c_iter::current
87 c_iter::current
93 c_iter::current
98 c_iter::current
104 c_iter::current
/PHP-8.1/ext/phar/tests/
H A Dphar_buildfromiterator9.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return (bool) current($this->a);
56 current
H A Dphar_buildfromiterator5.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return is_object(current($this->a));
55 current
H A Dphar_buildfromiterator6.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return current($this->a);
55 current
/PHP-8.1/ext/phar/tests/tar/
H A Dphar_buildfromiterator5.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return (bool) current($this->a);
55 current
H A Dphar_buildfromiterator6.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return current($this->a);
55 current
/PHP-8.1/ext/phar/tests/zip/
H A Dphar_buildfromiterator5.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return is_object(current($this->a));
55 current
H A Dphar_buildfromiterator6.phpt21 function current(): mixed {
22 echo "current\n";
23 return current($this->a);
31 return current($this->a);
55 current

Completed in 35 milliseconds

12345678910>>...22