/PHP-5.3/tests/lang/ |
H A D | foreachLoop.013.phpt | 20 foreach ($a as $k=>&$v) { 21 echo " iteration $counter: \$k=$k; \$v=$v\n"; 50 $transform = 'unset($a[$k]);'; 81 iteration 0: $k=0; $v=v.0 95 iteration 0: $k=0; $v=v.0 96 iteration 1: $k=0; $v=v.0 112 iteration 0: $k=0; $v=v.0 113 iteration 1: $k=1; $v=v.1 133 iteration 0: $k=0; $v=v.0 134 iteration 1: $k=1; $v=v.1 [all …]
|
H A D | foreachLoop.014.phpt | 22 foreach ($a as $k=>$v) { 23 echo " iteration $counter: \$k=$k; \$v=$v\n"; 52 $transform = 'unset($a[$k]);'; 82 iteration 0: $k=0; $v=v.0 96 iteration 0: $k=0; $v=v.0 97 iteration 1: $k=0; $v=v.0 113 iteration 0: $k=0; $v=v.0 114 iteration 1: $k=1; $v=v.1 134 iteration 0: $k=0; $v=v.0 135 iteration 1: $k=1; $v=v.1 [all …]
|
H A D | foreachLoop.015.phpt | 22 foreach ($a as $k=>&$v) { 23 echo " iteration $counter: \$k=$k; \$v=$v\n"; 52 $transform = 'unset($a[$k]);'; 83 iteration 0: $k=0; $v=v.0 97 iteration 0: $k=0; $v=v.0 98 iteration 1: $k=0; $v=v.0 114 iteration 0: $k=0; $v=v.0 115 iteration 1: $k=1; $v=v.1 135 iteration 0: $k=0; $v=v.0 136 iteration 1: $k=1; $v=v.1 [all …]
|
H A D | foreachLoop.012.phpt | 20 foreach ($a as $k=>$v) { 21 echo " iteration $counter: \$k=$k; \$v=$v\n"; 50 $transform = 'unset($a[$k]);'; 81 iteration 0: $k=0; $v=v.0 95 iteration 0: $k=0; $v=v.0 96 iteration 1: $k=1; $v=v.1 112 iteration 0: $k=0; $v=v.0 113 iteration 1: $k=1; $v=v.1 114 iteration 2: $k=2; $v=v.2 132 iteration 0: $k=0; $v=v.0 [all …]
|
H A D | bug24396.phpt | 8 foreach($arr as $k=>$v) { 9 global $$k; // comment this out and it works in PHP 5 too.. 11 echo "($k => $v)\n"; 13 $$k = $v;
|
H A D | 024.phpt | 244 ${"test$i$j"}[$k] = $i+$j+$k; 350 echo " \$k=$k\n"; 552 $k=0 553 $k=1 554 $k=2 568 $k=0 569 $k=1 570 $k=2 584 $k=0 585 $k=1 [all …]
|
/PHP-5.3/ext/mysqli/tests/ |
H A D | mysqli_stmt_get_result_metadata.phpt | 98 …$k, gettype($info->name), $info->name, gettype($fields['meta'][$k]->name), $fields['meta'][$k]->na… 102 …$k, gettype($info->orgname), $info->orgname, gettype($fields['meta'][$k]->orgname), $fields['meta'… 106 …$k, gettype($info->table), $info->table, gettype($fields['meta'][$k]->table), $fields['meta'][$k]-… 110 …$k, gettype($info->orgtable), $info->orgtable, gettype($fields['meta'][$k]->orgtable), $fields['me… 114 … $k, gettype($info->def), $info->def, gettype($fields['meta'][$k]->def), $fields['meta'][$k]->def); 122 …$k, gettype($info->length), $info->length, gettype($fields['meta'][$k]->length), $fields['meta'][$… 126 …$k, gettype($info->charsetnr), $info->charsetnr, gettype($fields['meta'][$k]->charsetnr), $fields[… 130 …$k, gettype($info->flags), $info->flags, gettype($fields['meta'][$k]->flags), $fields['meta'][$k]-… 134 …$k, gettype($info->type), $info->type, gettype($fields['meta'][$k]->type), $fields['meta'][$k]->ty… 142 $fields['all_res'][$k]->max_length = $fields['all_meta'][$k]->max_length; [all …]
|
/PHP-5.3/ext/sqlite/libsqlite/src/ |
H A D | where.c | 569 int k; in sqliteWhereBegin() local 570 for(k=0; k<pIdx->nColumn; k++){ in sqliteWhereBegin() 604 int k; in sqliteWhereBegin() local 605 for(k=0; k<pIdx->nColumn; k++){ in sqliteWhereBegin() 721 int j, k; in sqliteWhereBegin() local 785 for(k=0; k<nExpr; k++){ in sqliteWhereBegin() 886 aExpr[k].p->op==TK_LT || aExpr[k].p->op==TK_GT, brk); in sqliteWhereBegin() 905 if( aExpr[k].p->op==TK_LT || aExpr[k].p->op==TK_GT ){ in sqliteWhereBegin() 957 for(k=0; k<nExpr; k++){ in sqliteWhereBegin() 1001 for(k=0; k<nExpr; k++){ in sqliteWhereBegin() [all …]
|
/PHP-5.3/Zend/ |
H A D | zend_strtod.c | 496 rv->k = k; in Balloc() 686 k = a->k; in mult() 762 for(k = 0, y = 1; x > y; y <<= 1, k++) ; in s2b() 1061 d0 = Exp_1 | y << k | z >> (32 - k); 1063 d1 = z << k | y >> (32 - k); 1075 d1 = z << k + 16 - Ebits | w << k - Ebits | y >> 16 + Ebits - k; 1081 d0 = Exp_1 | y << k + 16 | z << k | w >> 16 - k; 1083 d1 = w << k + 16 | y << k; 1240 k = -k; in ratio() 1249 k = -k; in ratio() [all …]
|
/PHP-5.3/ext/spl/tests/ |
H A D | recursive_tree_iterator_001.phpt | 29 foreach(new RecursiveTreeIterator($it) as $k => $v) { 30 echo "[$k] => $v\n"; 33 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) { 34 echo "[$k] => $v\n"; 37 …erator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator::BYPASS_KEY) as $k => $v) { 38 echo "[$k] => $v\n"; 41 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) { 42 echo "[$k] => $v\n"; 45 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) { 46 echo "[$k] => $v\n";
|
H A D | recursive_tree_iterator_006.phpt | 39 foreach(new RecursiveTreeIterator($it) as $k => $v) { 40 echo "[$k] => $v\n"; 43 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) { 44 echo "[$k] => $v\n"; 47 …erator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator::BYPASS_KEY) as $k => $v) { 48 echo "[$k] => $v\n"; 51 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) { 52 echo "[$k] => $v\n"; 55 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) { 56 echo "[$k] => $v\n";
|
H A D | dllist_003.phpt | 12 foreach ($dll as $k => $v) { 13 echo "$k=>$v\n"; 17 foreach ($dll as $k => $v) { 18 echo "$k=>$v\n"; 23 foreach ($dll as $k => $v) { 24 echo "$k=>$v\n";
|
H A D | dllist_002.phpt | 13 foreach($dll as $k=>$v) { 14 echo "$k=>$v\n"; 23 foreach($dll as $k=>$v) { 24 echo "$k=>$v\n"; 30 foreach($dll2 as $k=>$v) { 31 echo "$k=>$v\n";
|
H A D | pqueue_001.phpt | 18 foreach ($pq as $k=>$v) { 19 echo "$k=>".print_r($v, 1)."\n"; 31 foreach ($pq1 as $k=>$v) { 32 echo "$k=>".print_r($v, 1)."\n"; 44 foreach ($pq2 as $k=>$v) { 45 echo "$k=>".print_r($v, 1)."\n"; 57 foreach ($pq3 as $k=>$v) { 58 echo "$k=>".print_r($v, 1)."\n";
|
/PHP-5.3/ext/standard/ |
H A D | quot_print.c | 203 int arg1_len, i = 0, j = 0, k; in PHP_FUNCTION() local 227 k = 1; in PHP_FUNCTION() 228 while (str_in[i + k] && ((str_in[i + k] == 32) || (str_in[i + k] == 9))) { in PHP_FUNCTION() 230 k++; in PHP_FUNCTION() 232 if (!str_in[i + k]) { in PHP_FUNCTION() 234 i += k; in PHP_FUNCTION() 236 else if ((str_in[i + k] == 13) && (str_in[i + k + 1] == 10)) { in PHP_FUNCTION() 238 i += k + 2; in PHP_FUNCTION() 240 else if ((str_in[i + k] == 13) || (str_in[i + k] == 10)) { in PHP_FUNCTION() 242 i += k + 1; in PHP_FUNCTION()
|
/PHP-5.3/ext/mbstring/libmbfl/tests/conv_encoding.tests/ |
H A D | gen_exp.c | 119 if (k < 0x80) { in utf32_utf8() 120 buf[0] = k; in utf32_utf8() 122 } else if (k < 0x800) { in utf32_utf8() 123 buf[0] = 0xc0 | (k >> 6); in utf32_utf8() 126 } else if (k < 0x10000) { in utf32_utf8() 127 buf[0] = 0xe0 | (k >> 12); in utf32_utf8() 131 } else if (k < 0x200000) { in utf32_utf8() 132 buf[0] = 0xf0 | (k >> 18); in utf32_utf8() 137 } else if (k < 0x4000000) { in utf32_utf8() 138 buf[0] = 0xf8 | (k >> 24); in utf32_utf8() [all …]
|
/PHP-5.3/Zend/tests/ |
H A D | bug37046.phpt | 10 foreach (s() as $k => $function) { 11 echo "op1 $k\n"; 12 if ($k == 0) { 13 foreach (s() as $k => $function) { 14 echo "op2 $k\n";
|
H A D | bug39449.phpt | 10 public function __set($k, $v) { 11 $this->keys[$k] = $v; 21 foreach ($a->arr as $k => $v) { 22 echo "$k => $v\n"; 27 foreach ($a->arr as $k => $v) { 28 echo "$k => $v\n";
|
/PHP-5.3/tests/func/ |
H A D | 003.phpt | 20 for ($k=$i; $k<=$j; $k++) { 21 echo "$k\n"; 56 for ($k=0; $k<10; $k++) { 79 for ($k=0; $k<10; $k++) { 92 for ($k=$i ; $k<=$j ; $k++) { 93 if ($k >5) continue; 94 echo "$k\n";
|
/PHP-5.3/ext/standard/tests/strings/ |
H A D | htmlentities_html4.phpt | 5 function utf32_utf8($k) { 6 if ($k < 0x80) { 7 $retval = pack('C', $k); 8 } else if ($k < 0x800) { 10 0xc0 | ($k >> 6), 11 0x80 | ($k & 0x3f)); 12 } else if ($k < 0x10000) { 14 0xe0 | ($k >> 12), 17 } else if ($k < 0x200000) { 19 0xf0 | ($k >> 18), [all …]
|
H A D | strtok_variation6.phpt | 19 "\khello\k world\k", 20 "/khello\k world/k", 24 "k", 26 "/k", 27 "\k", 28 "\\\\\\\k\h\e\l\o\w\r\l\d" 86 string(9) "\khello\k" 87 string(7) "world\k" 113 string(8) "khello\k" 115 string(1) "k"
|
/PHP-5.3/ext/standard/tests/array/ |
H A D | bug21918.phpt | 9 foreach($a as $k => $v) { 10 var_dump($k); 18 foreach($b as $k => $v) { 19 var_dump($k); 26 foreach($c as $k => $v) { 27 var_dump($k);
|
/PHP-5.3/tests/classes/ |
H A D | visibility_005.phpt | 14 foreach($this as $k=>$v) { 15 echo "$k=>$v\n"; 29 foreach($o as $k=>$v) { 30 echo "$k=>$v\n"; 38 foreach($o as $k=>$v) { 39 echo "$k=>$v\n";
|
H A D | new_001.phpt | 19 $k =& $f; 23 echo "Assigning new object directly to \$k affects \$f:\n"; 24 $k = new Inc(); 27 …echo "Assigning new object by ref to \$k removes it from \$f's reference set, so \$f is unchanged:… 28 $k =& new Inc(); 39 Assigning new object directly to $k affects $f: 44 Assigning new object by ref to $k removes it from $f's reference set, so $f is unchanged:
|
/PHP-5.3/ext/phar/tests/ |
H A D | phar_oo_008.phpt | 20 foreach($f as $k => $v) 22 echo "$k=>$v\n"; 28 foreach($f as $k => $v) 30 echo "$k=>$v\n"; 59 foreach($v as $k => $d) 61 echo "$k=>" . join('|',$d) . "\n"; 77 foreach($v as $k => $d) 79 echo "$k=>" . join('|',$d) . "\n";
|