/php-src/ext/mbstring/tests/ |
H A D | mb_ereg_replace_named_subpatterns.phpt | 12 // \k<word> syntax 13 echo mb_ereg_replace('(?<a>\s*)(?<b>\w+)(?<c>\s*)', '\k<a>_\k<b>_\k<c>', 'a b c d e' ), "\n"; 14 // \k'word' syntax 16 // numbered captures with \k<n> syntax 17 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', '\k<0>-\k<10>-', '123456789aa'), PHP_E… 18 // numbered captures with \k'n' syntax 19 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', "\k'0'-\k'10'-", '123456789aa'), PHP_E… 21 echo mb_ereg_replace('a', "\k'0'_\k<01>", 'a'), PHP_EOL; 34 a_\k<01> 36 -\k<>- [all …]
|
/php-src/Zend/tests/zend_ini/ |
H A D | zend_ini_parse_quantity.phpt | 60 # "1k" 63 # "0123k" 66 # "1k " 132 # "1 k" 138 # "1 k " 204 # "+1k" 210 # "+1k " 276 # "+1 k" 348 # "-1k" 354 # "-1k " [all …]
|
H A D | zend_ini_parse_quantity_binary_prefixes.phpt | 117 # "0b11 k" 120 # "0B11 k" 123 # "0b11 k " 126 # "0B11 k " 237 # "+0b11 k" 240 # "+0B11 k" 243 # "+0b11 k " 357 # "-0b11 k" 360 # "-0B11 k" 477 # " 0b11 k" [all …]
|
/php-src/ext/standard/ |
H A D | crc32_x86.c | 74 __m128i x0, x1, x2, k, shuf_mask; in crc32_pclmul_batch() local 136 x4 = _mm_clmulepi64_si128(x0, k, 0x00); in crc32_pclmul_batch() 137 x0 = _mm_clmulepi64_si128(x0, k, 0x11); in crc32_pclmul_batch() 140 x4 = _mm_clmulepi64_si128(x0, k, 0x00); in crc32_pclmul_batch() 141 x0 = _mm_clmulepi64_si128(x0, k, 0x11); in crc32_pclmul_batch() 144 x4 = _mm_clmulepi64_si128(x0, k, 0x00); in crc32_pclmul_batch() 166 x1 = _mm_clmulepi64_si128(x0, k, 0x11); in crc32_pclmul_batch() 171 x1 = _mm_clmulepi64_si128(x0, k, 0x01); in crc32_pclmul_batch() 178 x1 = _mm_clmulepi64_si128(x1, k, 0x00); in crc32_pclmul_batch() 180 x1 = _mm_clmulepi64_si128(x1, k, 0x10); in crc32_pclmul_batch() [all …]
|
H A D | quot_print.c | 198 size_t i = 0, j = 0, k; in PHP_FUNCTION() local 222 k = 1; in PHP_FUNCTION() 223 while (str_in[i + k] && ((str_in[i + k] == 32) || (str_in[i + k] == 9))) { in PHP_FUNCTION() 225 k++; in PHP_FUNCTION() 227 if (!str_in[i + k]) { in PHP_FUNCTION() 229 i += k; in PHP_FUNCTION() 231 else if ((str_in[i + k] == 13) && (str_in[i + k + 1] == 10)) { in PHP_FUNCTION() 233 i += k + 2; in PHP_FUNCTION() 235 else if ((str_in[i + k] == 13) || (str_in[i + k] == 10)) { in PHP_FUNCTION() 237 i += k + 1; in PHP_FUNCTION()
|
/php-src/tests/lang/ |
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]);'; 82 iteration 0: $k=0; $v=v.0 96 iteration 0: $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 155 iteration 0: $k=0; $v=v.0 [all …]
|
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]);'; 80 iteration 0: $k=0; $v=v.0 94 iteration 0: $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 153 iteration 0: $k=0; $v=v.0 [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]);'; 80 iteration 0: $k=0; $v=v.0 94 iteration 0: $k=0; $v=v.0 95 iteration 1: $k=1; $v=v.1 111 iteration 0: $k=0; $v=v.0 112 iteration 1: $k=1; $v=v.1 113 iteration 2: $k=2; $v=v.2 131 iteration 0: $k=0; $v=v.0 [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=1; $v=v.1 113 iteration 0: $k=0; $v=v.0 114 iteration 1: $k=1; $v=v.1 115 iteration 2: $k=2; $v=v.2 133 iteration 0: $k=0; $v=v.0 [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_stmt_get_result_metadata.phpt | 95 …$k, gettype($info->name), $info->name, gettype($fields['meta'][$k]->name), $fields['meta'][$k]->na… 99 …$k, gettype($info->orgname), $info->orgname, gettype($fields['meta'][$k]->orgname), $fields['meta'… 103 …$k, gettype($info->table), $info->table, gettype($fields['meta'][$k]->table), $fields['meta'][$k]-… 107 …$k, gettype($info->orgtable), $info->orgtable, gettype($fields['meta'][$k]->orgtable), $fields['me… 111 … $k, gettype($info->def), $info->def, gettype($fields['meta'][$k]->def), $fields['meta'][$k]->def); 119 …$k, gettype($info->length), $info->length, gettype($fields['meta'][$k]->length), $fields['meta'][$… 123 …$k, gettype($info->charsetnr), $info->charsetnr, gettype($fields['meta'][$k]->charsetnr), $fields[… 127 …$k, gettype($info->flags), $info->flags, gettype($fields['meta'][$k]->flags), $fields['meta'][$k]-… 131 …$k, gettype($info->type), $info->type, gettype($fields['meta'][$k]->type), $fields['meta'][$k]->ty… 139 $fields['all_res'][$k]->max_length = $fields['all_meta'][$k]->max_length; [all …]
|
/php-src/Zend/tests/list/ |
H A D | list_keyed_evaluation_order_nested.phpt | 30 // 1. Evaluate $k 32 // 3. Evaluate $k[$a] 33 // 4. Assign $b from $k[$a] 35 // 6. Evaluate $k[$c] 36 // 7. Evaluate $k[$c][0] 37 // 8. Assign $d from $k[$c][0] 38 // 9. Evaluate $k[$c][1] 41 // 12. Evaluate $k[$f] 43 // 14. Evaluate $k[$f][$g] 46 // 17. Evaluate $k[$f][$i] [all …]
|
H A D | list_reference_007.phpt | 9 function offsetSet ($k, $v): void { $this->s[$k] = $v; } 10 function &offsetGet ($k): mixed { return $this->s[$k]; } 11 function offsetExists ($k): bool { return isset($this->s[$k]); } 12 function offsetUnset ($k): void { unset($this->s[$k]); }
|
/php-src/ext/spl/tests/ |
H A D | SplFixedArray_change_size_during_iteration.phpt | 9 foreach ($splFixedArray as $k => $v) { 10 echo "$k => $v\n"; 11 if ($k == 0) { 18 foreach ($splFixedArray as $k => $v) { 19 echo "$k => $v\n"; 20 if ($k == 1) { 27 foreach ($splFixedArray as $k => $v) { 28 echo "$k => $v\n"; 29 if ($k == 2) {
|
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 | recursive_tree_iterator_001.phpt | 27 foreach(new RecursiveTreeIterator($it) as $k => $v) { 28 echo "[$k] => $v\n"; 31 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) { 32 echo "[$k] => $v\n"; 35 …erator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator::BYPASS_KEY) as $k => $v) { 36 echo "[$k] => $v\n"; 39 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) { 40 echo "[$k] => $v\n"; 43 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) { 44 echo "[$k] => $v\n";
|
/php-src/Zend/tests/weakrefs/ |
H A D | gh10043-011.phpt | 7 class V { public $k; } 10 $k = new K; 12 $v->k = $k; 13 $m[$k] = $v; 16 unset($m2, $k, $v);
|
/php-src/ext/random/ |
H A D | gammasection.c | 86 if (k == hi) { in php_random_gammasection_closed_open() 90 splitint64(k, &k_hi, &k_lo); in php_random_gammasection_closed_open() 96 splitint64(k - 1, &k_hi, &k_lo); in php_random_gammasection_closed_open() 114 if (k == hi) { in php_random_gammasection_closed_closed() 118 splitint64(k, &k_hi, &k_lo); in php_random_gammasection_closed_closed() 123 if (k == hi) { in php_random_gammasection_closed_closed() 127 splitint64(k, &k_hi, &k_lo); in php_random_gammasection_closed_closed() 147 splitint64(k, &k_hi, &k_lo); in php_random_gammasection_open_closed() 151 if (k == (hi - 1)) { in php_random_gammasection_open_closed() 175 splitint64(k, &k_hi, &k_lo); in php_random_gammasection_open_open() [all …]
|
/php-src/Zend/tests/ |
H A D | bug64555.phpt | 13 foreach ($a as $k => $v) { 14 if ($k == 'unsetme') { 15 echo "Unsetting: $k\n"; 16 unset($a[$k]); 17 } else if ($k == 'keepme') { 18 echo "Changing: $k\n"; 19 $a[$k] = 42;
|
H A D | assign_coalesce_003.phpt | 16 public function &offsetGet($k): mixed { 17 echo "offsetGet($k)\n"; 18 return $this->data[$k]; 20 public function offsetExists($k): bool { 21 echo "offsetExists($k)\n"; 22 return array_key_exists($k, $this->data); 24 public function offsetSet($k,$v): void { 25 echo "offsetSet($k,$v)\n"; 26 $this->data[$k] = $v; 28 public function offsetUnset($k): void { }
|
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-src/ext/dba/ |
H A D | dba_lmdb.c | 134 MDB_val k, v; in DBA_FETCH_FUNC() local 147 k.mv_size = ZSTR_LEN(key); in DBA_FETCH_FUNC() 175 MDB_val k, v; in DBA_UPDATE_FUNC() local 210 MDB_val k, v; in DBA_EXISTS_FUNC() local 246 MDB_val k; in DBA_DELETE_FUNC() local 277 MDB_val k, v; in DBA_FIRSTKEY_FUNC() local 304 if (k.mv_data) { in DBA_FIRSTKEY_FUNC() 305 ret = zend_string_init(k.mv_data, k.mv_size, /* persistent */ false); in DBA_FIRSTKEY_FUNC() 316 MDB_val k, v; in DBA_NEXTKEY_FUNC() local 336 if (k.mv_data) { in DBA_NEXTKEY_FUNC() [all …]
|
/php-src/ext/standard/html_tables/ |
H A D | html_table_gen.php | 256 foreach ($a as $k => $v) { 342 foreach ($mappy as $k => $v) { 466 foreach ($multicp_rows as $k => $v) { 532 for ($k = 0; $k < 64; $k++) { variable 536 if (isset($mstable[$i][$k][$l])) { 602 for ($k = 0; $k < 64; $k++) { variable 603 if (isset($mstable[$i][$k])) 609 for ($k = 0; $k < 64; $k++) { variable 610 if ($k == 0) echo "\t"; 611 elseif ($k % 4 == 0) echo "\n\t"; [all …]
|
/php-src/scripts/dev/ |
H A D | bless_tests.php | 187 for ($k = -$d; $k <= $d; $k += 2) { 188 if ($k === -$d || ($k !== $d && $v[$k-1] < $v[$k+1])) { 189 $x = $v[$k+1]; 191 $x = $v[$k-1] + 1; 194 $y = $x - $k; 200 $v[$k] = $x; 213 $k = $x - $y; 215 if ($k === -$d || ($k !== $d && $v[$k-1] < $v[$k+1])) { 216 $prevK = $k + 1; 218 $prevK = $k - 1;
|