/php-src/ext/spl/tests/SplFileObject/ |
H A D | SplFileObject_current_variation001.phpt | 2 SPL: SplFileObject::current variation 16 echo $s->current(); 17 echo $s->current();
|
H A D | SplFileObject_rewind_variation001.phpt | 16 echo $s->current(); 18 echo $s->current(); 22 echo $s->current();
|
/php-src/ext/standard/tests/array/ |
H A D | reset_variation3.phpt | 15 var_dump(current($array1)); 25 var_dump(current($array1)); 27 var_dump(current($array2)); 32 var_dump(current($array1)); 34 var_dump(current($array2));
|
H A D | bug35022.phpt | 2 Bug #35022 (Regression in the behavior of key/current functions) 9 echo key($state) . " => " . current($state) . "\n"; 14 var_dump( key($state), current($state) );
|
H A D | current_variation2.phpt | 2 Test current() function : usage variations - arrays containing different data types 6 * Pass arrays of different data types as $array_arg to current() to test behaviour 9 echo "*** Testing current() : usage variations ***\n"; 102 // loop through each element of $inputs to check the behavior of current() 106 var_dump( current($input) ); 113 *** Testing current() : usage variations ***
|
H A D | next_basic.phpt | 12 echo key($array) . " => " . current($array) . "\n"; 15 echo key($array) . " => " . current($array) . "\n"; 18 echo key($array) . " => " . current($array) . "\n";
|
/php-src/ext/spl/tests/SplObjectStorage/ |
H A D | SplObjectStorage_current_empty_storage.phpt | 2 Check that SplObjectStorage::current() throws when iterator invalid 12 var_dump($s->current()); 20 Called current() on invalid iterator
|
/php-src/ext/date/tests/ |
H A D | date_time_immutable-inherited.phpt | 8 $current = "2012-12-27 16:24:08"; 11 $v = date_create_immutable($current); 16 $v = date_create_immutable($current);
|
H A D | DateTimeImmutable_createFromMutable-001.phpt | 7 $current = "2014-03-02 16:24:08"; 9 $i = DateTimeImmutable::createFromMutable( date_create( $current ) ); 13 DateTimeImmutable::createFromMutable( date_create_immutable( $current ) );
|
H A D | DateTimeImmutable_createFromMutable-002.phpt | 9 $current = "2014-03-02 16:24:08"; 11 $i = MyDateTimeImmutable::createFromMutable( date_create( $current ) ); 15 MyDateTimeImmutable::createFromMutable( date_create_immutable( $current ) );
|
/php-src/ext/dom/tests/ |
H A D | childNodes_current_crash.phpt | 2 Crash in childNodes iterator current() 15 var_dump($iter->current()?->wholeText); 18 var_dump($iter->current()?->wholeText);
|
H A D | dom_comment_variation.phpt | 20 $current = $children->item($index); 21 echo get_class($current), "\n"; 22 var_dump($current->textContent);
|
H A D | dom_comment_basic.phpt | 23 $current = $children->item($index); 24 echo get_class($current), "\n"; 25 var_dump($current->textContent);
|
/php-src/ext/spl/tests/ |
H A D | iterator_021.phpt | 58 function current(): mixed 61 return parent::current(); 113 RecursiveArrayIteratorIterator::current 122 RecursiveArrayIteratorIterator::current 131 RecursiveArrayIteratorIterator::current 137 RecursiveArrayIteratorIterator::current 148 RecursiveArrayIteratorIterator::current 163 RecursiveArrayIteratorIterator::current 171 RecursiveArrayIteratorIterator::current
|
H A D | bug45614.phpt | 15 echo str_replace("\0", '\0', $it->key()) . " => " . $it->current() . 18 echo str_replace("\0", '\0', $it->key()) . " => " . $it->current() . 32 echo "\n--> Invalidate current position and show the first two items:\n"; 34 $ai->current(); 51 --> Invalidate current position and show the first two items:
|
H A D | observer_002.phpt | 26 function current(): object 28 echo __METHOD__ . "(" . parent::current()->getName() . ")\n"; 29 return parent::current(); 151 MyObjectStorage::current($ob1) 156 MyObjectStorage::current($ob2) 161 MyObjectStorage::current($ob3) 171 MyObjectStorage::current($ob1) 176 MyObjectStorage::current($ob2) 192 MyObjectStorage::current($ob3)
|
/php-src/ext/phar/tests/ |
H A D | phar_oo_004.phpt | 52 function current(): mixed 55 return parent::current(); 100 MyDirectoryIterator::current 106 MyDirectoryIterator::current 112 MyDirectoryIterator::current 118 MyDirectoryIterator::current
|
/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_jit_misc.c | 53 PRIV(jit_free_rodata)(void *current, void *allocator_data) in PRIV() 56 (void)current; in PRIV() 63 while (current != NULL) in PRIV() 65 next = *(void**)current; in PRIV() 66 SLJIT_FREE(current, allocator_data); in PRIV() 67 current = next; in PRIV()
|
/php-src/Zend/tests/generators/ |
H A D | backtrace_multi_yield_from.phpt | 19 var_dump($gen3->current()); 21 var_dump($gen2->current()); 23 var_dump($gen2->current());
|
/php-src/Zend/tests/ |
H A D | bug79927.phpt | 17 echo $generator->current(), "\n"; 23 $generator2->current(); 25 echo $generator2->current(), "\n";
|
H A D | foreach_003.phpt | 24 function current(): mixed {$this->trap(__FUNCTION__); return $this->n;} 28 foreach(['rewind', 'valid', 'key', 'current', 'next'] as $trap) { 63 current 64 current 65 current
|
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/ |
H A D | in_row.c | 15 lxb_dom_node_t *current = lxb_html_tree_current_node(tree); in lxb_html_tree_clear_stack_back_to_table_row() local 17 while ((current->local_name != LXB_TAG_TR in lxb_html_tree_clear_stack_back_to_table_row() 18 && current->local_name != LXB_TAG_TEMPLATE in lxb_html_tree_clear_stack_back_to_table_row() 19 && current->local_name != LXB_TAG_HTML) in lxb_html_tree_clear_stack_back_to_table_row() 20 || current->ns != LXB_NS_HTML) in lxb_html_tree_clear_stack_back_to_table_row() 23 current = lxb_html_tree_current_node(tree); in lxb_html_tree_clear_stack_back_to_table_row()
|
/php-src/ext/posix/tests/ |
H A D | posix_getsid.phpt | 4 Get the current session id of a process pid (POSIX.1, 4.2.1) 16 echo "\n-- Testing posix_getsid() function with current process pid --\n"; 23 -- Testing posix_getsid() function with current process pid --
|
/php-src/Zend/asm/ |
H A D | jump_i386_ms_pe_masm.asm | 45 ; load current deallocation stack 48 ; load current stack limit 51 ; load current stack base 54 ; load current SEH exception list 86 ; restore current deallocation stack 89 ; restore current stack limit 92 ; restore current stack base 95 ; restore current SEH exception list
|
/php-src/ext/intl/common/ |
H A D | common_enum.cpp | 61 return Z_ISUNDEF(((zoi_with_current*)iter)->current)? FAILURE : SUCCESS; in zoi_with_current_valid() 66 return &((zoi_with_current*)iter)->current; in zoi_with_current_get_current_data() 72 if (!Z_ISUNDEF(zoi_iter->current)) { in zoi_with_current_invalidate_current() 73 zval_ptr_dtor(&zoi_iter->current); in zoi_with_current_invalidate_current() 74 ZVAL_UNDEF(&zoi_iter->current); //valid would return FAILURE now in zoi_with_current_invalidate_current() 97 ZVAL_STRINGL(&zoi_iter->current, result, result_length); in string_enum_current_move_forward() 106 if (!Z_ISUNDEF(zoi_iter->current)) { in string_enum_rewind() 152 ZVAL_UNDEF(&((zoi_with_current*)ii->iterator)->current); in IntlIterator_from_StringEnumeration() 206 PHP_METHOD(IntlIterator, current) in PHP_METHOD() argument
|