Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/PHP-7.0/ext/phar/tests/zip/
H A Dbug48791.phpt14list-style-name="L1"/><style:style style:name="T1" style:family="text"><style:text-properties styl…
/PHP-7.0/ext/spl/tests/
H A Dbug67538.phpt5 $list = new SplDoublyLinkedList();
6 $list->push('a');
7 $list->push('b');
9 $list->rewind();
10 $list->offsetUnset(0);
11 $list->push('b');
12 $list->offsetUnset(0);
13 $list->next();
H A DSplDoublyLinkedList_lifoMode.phpt7 $list = new SplDoublyLinkedList();
9 $list->push('o');
10 $list->push('o');
11 $list->push('f');
13 $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO);
15 $list->rewind();
17 while ($tmp = $list->current()) {
19 $list->next();
H A DSplDoublylinkedlist_offsetunset_first002.phpt7 $list = new SplDoublyLinkedList();
8 $list->push('oh');
9 $list->push('hai');
10 $list->push('thar');
11 echo $list->bottom() . "\n";
12 $list->offsetUnset(0);
13 echo $list->bottom() . "\n";
H A DSplDoublyLinkedList_offsetExists_success.phpt7 $list = new SplDoublyLinkedList();
9 // Push two values onto the list
10 $list->push('abc');
11 $list->push('def');
14 if($list->offsetExists(0) === true) {
19 if($list->offsetExists(1) === true) {
24 if($list->offsetExists(2) === false) {
H A DSplDoublylinkedlist_offsetunset_first.phpt7 $list = new SplDoublyLinkedList();
8 $list->push('oh');
9 $list->push('hai');
10 $list->push('thar');
11 $list->offsetUnset(0);
12 var_dump($list);
H A DSplDoublylinkedlist_offsetunset_last.phpt7 $list = new SplDoublyLinkedList();
8 $list->push('oh');
9 $list->push('hai');
10 $list->push('thar');
11 $list->offsetUnset(2);
12 var_dump($list);
H A Dbug67582.phpt13 $list = new MyObjectStorage();
14 $list->attach(new TestObject());
16 foreach($list as $x) var_dump($list->offsetExists($x));
18 $list2 = clone $list;
H A DSplDoublyLinkedList_getIteratorMode.phpt7 $list = new SplDoublyLinkedList();
8 $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_KEEP);
9 echo $list->getIteratorMode();
/PHP-7.0/Zend/tests/
H A Dlist_self_assign.phpt2 Test variable occuring on both LHS and RHS of list()
7 list($a, $b, $c) = $a;
11 list($a, $b, $c) = $b;
15 list($a, $b, $c) = $c;
19 list(list($a, $b), $c) = $a;
23 list(list($a, $b), $c) = $b;
27 list($a, list($b, $c)) = $b;
31 list($a, list($b, $c)) = $c;
H A Dforeach_list_001.phpt2 foreach with list syntax
6 foreach(array(array(1,2), array(3,4)) as list($a, $b)) {
15 foreach ($array as list($a, $b)) {
25 foreach ($multi as list(list($a, $b), list($c, $d))) {
29 foreach ($multi as $key => list(list($a, $b), list($c, $d))) {
H A Dlist_003.phpt2 list() with non-array
6 list($a) = NULL;
8 list($b) = 1;
10 list($c) = 1.;
12 list($d) = 'foo';
14 list($e) = print '';
H A Dlist_006.phpt2 Testing nested list() with empty array
6 list($a, list($b, list(list($d)))) = array();
H A Dforeach_list_003.phpt2 foreach with list key
8 foreach($array as list($key) => list(list(), $a)) {
13 Fatal error: Cannot use list as key element in %sforeach_list_003.php on line %d
H A Dlist_005.phpt2 Testing list() with several variables
8 list($a, $b, $c) = $str;
16 list($a, $b, $c) = $int;
24 list($a, $b, $c) = $obj;
32 list($a, $b, $c) = $arr;
H A Dlist_empty_error.phpt2 Empty list() assignments are not allowed
6 list(,,,,,,,,,,) = [];
10 Fatal error: Cannot use empty list in %s on line %d
H A Dlist_001.phpt2 "Nested" list()
6 list($a, list($b)) = array(new stdclass, array(new stdclass));
H A Dbug40899.phpt2 Bug #40899 (memory leak when nesting list())
5 list(list($a,$b),$c)=array(array('a','b'),'c');
H A Dbug73663.phpt2 Bug #73663 ("Invalid opcode 65/16/8" occurs with a variable created with list())
15 var_dump(list($val) = $array); // NG: Invalid opcode
17 change(list($val) = $array);
22 $func(list($val) = $array);
/PHP-7.0/ext/spl/
H A Dspl_functions.c80 void spl_add_class_name(zval *list, zend_class_entry *pce, int allow, int ce_flags) in spl_add_class_name() argument
85 if ((tmp = zend_hash_find(Z_ARRVAL_P(list), pce->name)) == NULL) { in spl_add_class_name()
88 zend_hash_add(Z_ARRVAL_P(list), pce->name, &t); in spl_add_class_name()
95 void spl_add_interfaces(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_interfaces() argument
100 spl_add_class_name(list, pce->interfaces[num_interfaces], allow, ce_flags); in spl_add_interfaces()
106 void spl_add_traits(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_traits() argument
111 spl_add_class_name(list, pce->traits[num_traits], allow, ce_flags); in spl_add_traits()
118 int spl_add_classes(zend_class_entry *pce, zval *list, int sub, int allow, int ce_flags) in spl_add_classes() argument
123 spl_add_class_name(list, pce, allow, ce_flags); in spl_add_classes()
125 spl_add_interfaces(list, pce, allow, ce_flags); in spl_add_classes()
[all …]
/PHP-7.0/tests/lang/
H A Dengine_assignExecutionOrder_002.phpt8 list($a,,$b) = $f;
29 list($e[$f++],$e[$f++]) = $g[2];
41 // a list of lists
42 list(list($j[$h++],$j[$h++]),$j[$h++]) = $i[3];
49 list(list($l,$m),$n) = $k;
54 list($o,$p) = 20;
58 // list of lists with blanks and nulls expect 10 20 40 50 60 70 80
64 list(list(list($r,$s,,$t),list($u,$v),,$w),,$x) = $q4;
69 list($y,$z) = array();
73 list($aa,$bb) = array(10);
[all …]
H A D031.phpt11 while(list(,$o) = each($arrayOuter)){
13 while(list(,$i) = each($arrayInner)){
22 while(list(,$o) = each($arrayOuter)){
23 while(list(,$i) = each($arrayInner)){
32 while(list(,$o) = each($arrayOuter)){
34 while(list(,$i) = each($arrayInner)){
43 while(list(,$o) = each($arrayOuter)){
45 while(list(,$i) = each($placeholder)){
/PHP-7.0/ext/dom/tests/
H A Dbug67474.phpt11 $list = $doc->getElementsByTagNameNS('', 'a');
12 var_dump($list->length);
13 $list = $doc->getElementsByTagNameNS(null, 'a');
14 var_dump($list->length);
/PHP-7.0/scripts/dev/generate-phpt/src/testcase/
H A DgtErrorTestCaseFunction.php46 $list = $this->subject->getExtraArgumentList();
48 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );";
50 $list = $this->subject->getShortArgumentList();
52 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );";
H A DgtErrorTestCaseMethod.php49 $list = $this->subject->getExtraArgumentList();
51 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );";
53 $list = $this->subject->getShortArgumentList();
55 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );";

Completed in 28 milliseconds

12345678910>>...16