/PHP-7.0/ext/spl/tests/ |
H A D | iterator_028.phpt | 12 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 15 $it->setMaxDepth(2); 17 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 20 $it->setMaxDepth(); 22 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 25 $it->setMaxDepth(3); 27 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 30 $it->setMaxDepth(5); 32 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 35 $it->setMaxDepth(0); [all …]
|
H A D | iterator_027.phpt | 9 $it = new RecursiveIteratorIterator($it); 10 $it = new CachingIterator($it, CachingIterator::FULL_CACHE); 21 if (isset($it[$i])) 27 $it[2] = 'foo'; 28 $it[3] = 'bar'; 29 $it['baz'] = '25'; 31 var_dump($it[2]); 32 var_dump($it[3]); 35 unset($it[0]); 36 unset($it[2]); [all …]
|
H A D | iterator_011.phpt | 15 $it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D')); 16 $it = new InfiniteIterator($it); 17 $it = new LimitIterator($it, 2, 5); 18 foreach($it as $val=>$key) 25 $it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D')); 26 $it = new LimitIterator($it, 1, 2); 27 $it = new InfiniteIterator($it); 28 $it = new LimitIterator($it, 2, 5); 29 foreach($it as $val=>$key)
|
H A D | iterator_018.phpt | 15 $it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D')); 16 $it = new InfiniteIterator($it); 17 $it = new LimitIterator($it, 2, 5); 18 foreach($it as $val=>$key) 25 $it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D')); 26 $it = new LimitIterator($it, 1, 2); 27 $it = new InfiniteIterator($it); 28 $it = new LimitIterator($it, 2, 5); 29 foreach($it as $val=>$key)
|
H A D | iterator_025.phpt | 23 foreach($it as $v) echo "$v\n"; 31 $it->rewind(); 33 var_dump($it->valid()); 37 $it->rewind(); 38 while($it->valid()) 40 echo $it->current() . "\n"; 41 $it->next(); 44 $it->rewind(); 45 while($it->valid()) 47 echo $it->current() . "\n"; [all …]
|
H A D | filesystemiterator_flags.phpt | 8 $it = new FileSystemIterator("."); 9 printflags($it); 11 $it->setFlags(FileSystemIterator::CURRENT_AS_SELF | 15 printflags($it); 17 $it->setFlags(-1); 18 printflags($it); 20 function printflags($it) { 21 printf("%08X\n", $it->getFlags()); 22 printf("%08X\n", ($it->getFlags() & FileSystemIterator::CURRENT_MODE_MASK)); 23 printf("%08X\n", ($it->getFlags() & FileSystemIterator::KEY_MODE_MASK)); [all …]
|
H A D | array_014.phpt | 7 var_dump($it->count()); 8 $it->seek(5); 9 var_dump($it->current()); 10 $it->seek(4); 11 var_dump($it->current()); 14 $it->seek(-1); 15 var_dump($it->current()); 24 $it->seek(12); 25 var_dump($it->current()); 33 foreach($it as $v) [all …]
|
H A D | iterator_030.phpt | 6 $it = new EmptyIterator; 8 var_dump($it->valid()); 9 $it->rewind(); 10 var_dump($it->valid()); 11 $it->next(); 12 var_dump($it->valid()); 16 var_dump($it->key()); 25 var_dump($it->current()); 32 var_dump($it->valid());
|
H A D | recursive_tree_iterator_setpostfix.phpt | 27 $it = new RecursiveArrayIterator($arr); 28 $it = new RecursiveTreeIterator($it); 31 echo $it->getPostfix(); 35 $it->setPostfix("POSTFIX"); 36 echo $it->getPostfix(); 40 foreach($it as $k => $v) { 45 $it->setPostfix(""); 46 echo $it->getPostfix(); 50 foreach($it as $k => $v) {
|
H A D | array_012.phpt | 9 $it = new ArrayIterator($a); 11 var_dump($it->count()); 12 foreach($it as $key => $val) 15 var_dump($it->count()); 17 var_dump($it->count()); 31 $it = new ArrayIterator($o); 33 var_dump($it->count()); 34 foreach($it as $key => $val) 37 var_dump($it->count()); 39 var_dump($it->count());
|
H A D | iterator_032.phpt | 6 $it = new LimitIterator(new ArrayIterator(array(1,2,3,4)), 1, 2); 8 foreach($it as $k=>$v) 11 var_dump($it->getPosition()); 16 $it->seek(0); 23 $it->seek(2); 24 var_dump($it->current()); 28 $it->seek(3); 35 $it->next(); 36 var_dump($it->valid());
|
H A D | iterator_045.phpt | 76 var_dump($it->offsetSet()); 83 $it->testSet($checks); 84 $it->show(); 85 $it->testUnset($unsets); 86 $it->show(); 87 $it->fill(); 88 $it->show(); 89 $it->testSet($checks); 90 $it->show(); 91 $it->testUnset($unsets); [all …]
|
H A D | bug67359.phpt | 8 $it = new recursiveIteratorIterator( $rdi ); 9 $it->seek(1); 10 while( $it->valid()) 12 if( $it->isFile() ) 14 $it->current(); 17 $it->next(); 20 $it->current();
|
H A D | recursive_tree_iterator_008.phpt | 13 $it = new RecursiveArrayIterator($ary); 14 $it = new RecursiveTreeIterator($it); 16 $it->setPrefixPart($i, $i); 18 foreach($it as $k => $v) { 22 $it->setPrefixPart(-1, ""); 23 $it->setPrefixPart(6, ""); 28 $it->setPrefixPart(6, "");
|
H A D | iterator_040.phpt | 15 $it = new RecursiveArrayIterator($ar); 16 $it = new MyRecursiveFilterIterator($it); 17 $it = new RecursiveIteratorIterator($it); 19 foreach($it as $k => $v) 22 var_dump($it->getDepth());
|
H A D | RecursiveCallbackFilterIteratorTest.phpt | 42 $it = new RecursiveArrayIterator(array(1, array(2, 3), array(4, 5))); 43 $it = new RecursiveCallbackFilterIterator($it, $callback); 44 $it = new RecursiveIteratorIterator($it); 48 foreach($it as $value) { 54 $it = new RecursiveArrayIterator(array(1, array(2, 3), array(4, 5))); 55 $it = new RecursiveCallbackFilterIterator($it, $test()); 56 $it = new RecursiveIteratorIterator($it); 59 foreach($it as $value) {
|
H A D | recursive_tree_iterator_007.phpt | 11 public $it; 12 function __construct($it) { 13 $this->it = new RecursiveArrayIterator($it); 16 return $this->it; 20 $it = new RecursiveArrayIteratorAggregated($ary); 22 foreach(new RecursiveTreeIterator($it) as $k => $v) {
|
H A D | spl_006.phpt | 6 $it = new AppendIterator(); 7 $it->append(new ArrayIterator(array(1,2))); 8 $it->append(new ArrayIterator(array(2,3))); 10 var_dump(iterator_to_array($it)); 11 var_dump(iterator_to_array($it, false)); 12 var_dump(iterator_to_array($it, true));
|
H A D | recursive_tree_iterator_006.phpt | 28 public $it; 29 function __construct($it) { 30 $this->it = new RecursiveArrayIterator($it); 33 return $this->it; 37 $it = new RecursiveArrayIteratorAggregated($ary); 39 foreach(new RecursiveTreeIterator($it) as $k => $v) { 43 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) { 47 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator:… 51 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) { 55 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) {
|
H A D | array_013.phpt | 14 $it = new ArrayIterator($a); 16 foreach($it as $key => $val) 23 $it->append('three'); 24 $it->append('four'); 26 foreach(new NoRewindIterator($it) as $key => $val) 43 $it = new ArrayIterator($o); 45 foreach($it as $key => $val) 52 $it->append('three'); 53 $it->append('four'); 55 foreach(new NoRewindIterator($it) as $key => $val)
|
/PHP-7.0/ext/zlib/tests/ |
H A D | readgzfile_variation11.phpt | 32 all I know is that you can realize it 34 as it turns around 35 and I know that it descends down on me 39 all I know is that you can realize it 41 as it turns around 42 and I know that it descends down on me 46 all I know is that you can realize it 48 as it turns around 53 all I know is that you can realize it 55 as it turns around [all …]
|
H A D | readgzfile_variation12.phpt | 30 all I know is that you can realize it 32 as it turns around 33 and I know that it descends down on me 37 all I know is that you can realize it 39 as it turns around 40 and I know that it descends down on me 44 all I know is that you can realize it 46 as it turns around 47 and I know that it descends down on me 51 all I know is that you can realize it [all …]
|
H A D | gzfile_variation11.phpt | 38 string(38) "all I know is that you can realize it 44 string(19) "as it turns around 47 string(39) "and I know that it descends down on me 58 string(38) "all I know is that you can realize it 64 string(19) "as it turns around 67 string(39) "and I know that it descends down on me 78 string(38) "all I know is that you can realize it 84 string(19) "as it turns around 98 string(38) "all I know is that you can realize it 104 string(19) "as it turns around [all …]
|
/PHP-7.0/ext/intl/tests/ |
H A D | cpbi_clone_equality.phpt | 15 $it = IntlBreakIterator::createCodePointInstance(); 16 $it->setText($text); 18 $it_clone = clone $it; 19 var_dump($it == $it_clone); 21 $it->setText($text2 ); 22 var_dump($it == $it_clone); 25 var_dump($it == $it_clone);
|
/PHP-7.0/ext/spl/internal/ |
H A D | filteriterator.inc | 28 private $it; 33 * @param it Iterator to filter 36 $this->it = $it; 43 $this->it->rewind(); 62 while ($this->it->valid()) { 66 $this->it->next(); 76 $this->it->next(); 84 return $this->it->valid(); 91 return $this->it->key(); 98 return $this->it->current(); [all …]
|