/php-src/ext/hash/ |
H A D | hash_sha.c | 171 for(i = 0; i < 16; i++) { in SHA256Transform() 172 W[i] = x[i]; in SHA256Transform() 174 for(i = 16; i < 64; i++) { in SHA256Transform() 175 W[i] = SHA256_F5(W[i-2]) + W[i-7] + SHA256_F4(W[i-15]) + W[i-16]; in SHA256Transform() 178 for (i = 0; i < 64; i++) { in SHA256Transform() 245 for (i = partLen; i + 63 < inputLen; i += 64) { in PHP_SHA224Update() 483 for(i = 0; i < 16; i++) { in SHA512Transform() 484 W[i] = x[i]; in SHA512Transform() 486 for(i = 16; i < 80; i++) { in SHA512Transform() 487 W[i] = SHA512_F5(W[i-2]) + W[i-7] + SHA512_F4(W[i-15]) + W[i-16]; in SHA512Transform() [all …]
|
/php-src/ext/opcache/jit/ir/ |
H A D | gen_ir_fold_hash.c | 26 uint32_t i; in print_hash() local 29 for (i = 0; i < count; i++) { in print_hash() 68 for (i = 0; i < count; i++) { in find_hash() 81 hash[h] = mask[i]; in find_hash() 83 if (i == count) { in find_hash() 96 for (i = 0; i < count; i++) { in find_hash() 111 if (i == count) { in find_hash() 247 int i; in main() local 275 if (!i) { in main() 288 for (i = 0; i < rules; i++) { in main() [all …]
|
/php-src/ext/gd/tests/ |
H A D | copypalette.phpt | 9 for ($i=0; $i<256; $i++) { 10 imagecolorallocate($im, $i, $i, $i); 16 for ($i=0; $i<256; $i++) { 17 $c = imagecolorsforindex($im2, $i); 18 if ($c['red']!=$i || $c['green']!=$i || $c['blue']!=$i) {
|
H A D | colorclosest.phpt | 29 for ($i=0; $i<255; $i++) imagecolorresolve($im, $i,0,0); 35 for ($i=0; $i<256; $i++) { 36 if ($i == 246) { 37 imagecolorallocate($im, $i,10,10); 39 imagecolorallocate($im, $i,0,0); 67 for ($i=0; $i<255; $i++) imagecolorresolvealpha($im, $i,0,0,1); 72 for ($i=0; $i<256; $i++) { 73 if ($i == 246) { 74 imagecolorallocatealpha($im, $i,10,10,1); 76 imagecolorallocatealpha($im, $i,0,0,100);
|
/php-src/ext/standard/tests/serialize/ |
H A D | serialization_objects_004.phpt | 32 string(37) "a:2:{i:0;O:8:"stdClass":0:{}i:1;r:2;}" 33 string(22) "a:2:{i:0;i:1;i:1;i:1;}" 34 string(30) "a:2:{i:0;s:1:"a";i:1;s:1:"a";}" 35 string(22) "a:2:{i:0;b:1;i:1;b:1;}" 36 string(18) "a:2:{i:0;N;i:1;N;}" 37 string(26) "a:2:{i:0;a:0:{}i:1;a:0:{}}"
|
H A D | serialization_arrays_003.phpt | 72 string(30) "a:3:{i:0;i:1;i:1;i:1;i:2;i:1;}" 116 string(30) "a:3:{i:0;i:1;i:1;i:1;i:2;i:1;}" 160 string(30) "a:3:{i:0;i:1;i:1;i:1;i:2;i:1;}" 204 string(30) "a:3:{i:0;i:1;i:1;R:2;i:2;i:1;}" 248 string(30) "a:3:{i:0;i:1;i:1;R:2;i:2;R:2;}"
|
/php-src/ext/dom/tests/ |
H A D | DOMDocument_item_cache_invalidation.phpt | 38 …<e i="1"/><e i="2"/><e i="3"/><e i="4"/><e i="5"/><e i="6"/><e i="7"/><e i="8"/><e i="9"/><e i="10… 41 $i = 0; 43 for ($i = 0; $i < 11; $i++) { 44 $node = $elements->item($i); 45 print $node->getAttribute('i') . ' '; 46 if ($i++ % 2 == 0)
|
/php-src/ext/date/tests/ |
H A D | date_interval_create_from_date_string.phpt | 8 $i = date_interval_create_from_date_string($string); 9 var_dump($i->d); 12 $i = date_interval_create_from_date_string($string); 13 var_dump($i->d); 16 $i = date_interval_create_from_date_string($string); 17 var_dump($i->m); 20 $i = date_interval_create_from_date_string($string); 21 var_dump($i->y); 24 $i = date_interval_create_from_date_string($string); 25 var_dump($i->y); [all …]
|
H A D | gh10747-3.phpt | 20 $i = new I('P3D'); 21 $s = serialize($i); 24 var_dump($i, str_replace(chr(0), '!', $s), $u); 44 ["i"]=> 57 …i:0;s:1:"m";i:0;s:1:"d";i:3;s:1:"h";i:0;s:1:"i";i:0;s:1:"s";i:0;s:1:"f";d:0;s:6:"invert";i:0;s:4:"… 75 ["i"]=>
|
H A D | gh10747-error.phpt | 20 …3456";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";s:7:"!I!var1";i:1;s:7:"!I!var2";i:2;s:7:"!… 25 …3456";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";s:7:"!J!var1";i:1;s:7:"!K!var2";i:2;s:7:"!… 31 …3456";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";s:7:"!I!var1";i:1;s:7:"!I!var2";i:2;s:7:"!… 48 …3456";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";s:7:"!J!var1";i:1;s:7:"!K!var2";i:2;s:7:"!…
|
H A D | bug79015.phpt | 5 …DateInterval":9:{s:1:"y";i:1;s:1:"m";i:0;s:1:"d";i:4;s:1:"h";i:0;s:1:"i";i:0;s:1:"s";i:0;s:1:"f";i… 18 ["i"]=>
|
/php-src/ext/mbstring/ |
H A D | gen_rare_cp_bitvec.php | 26 for ($i = $start; $i <= $end; $i++) { variable 27 $bitvec[$i >> 5] &= ~(1 << ($i & 0x1F)); 46 for ($i = 0; $i < 0xFFFF / 32; $i++) { variable 47 if ($i % 8 === 0) { 53 $result .= "0x" . str_pad(dechex($bitvec[$i]), 8, '0', STR_PAD_LEFT) . ",";
|
/php-src/ext/standard/tests/strings/ |
H A D | number_format_basic.phpt | 20 for ($i = 0; $i < count($values); $i++) { 21 $res = number_format($values[$i]); 26 for ($i = 0; $i < count($values); $i++) { 27 $res = number_format($values[$i], 2); 32 for ($i = 0; $i < count($values); $i++) { 33 $res = number_format($values[$i], 2, '.', ' '); 38 for ($i = 0; $i < count($values); $i++) { 39 $res = number_format($values[$i], 2, ',' , ' ');
|
H A D | bug25671.phpt | 20 a:4:{i:0;s:19:"This is strung one.";i:1;s:19:"This is strung two.";i:2;s:5:"Array";i:3;s:22:"This i… 23 a:4:{i:0;s:19:"This is strung one.";i:1;s:19:"This is strung two.";i:2;s:5:"Array";i:3;s:22:"This i… 26 a:4:{i:0;s:16:"Thisisstringone.";i:1;s:16:"Thisisstringtwo.";i:2;s:5:"Array";i:3;s:18:"Thisisalasts… 29 a:4:{i:0;s:16:"Thisisstringone.";i:1;s:16:"Thisisstringtwo.";i:2;s:5:"Array";i:3;s:18:"Thisisalasts…
|
/php-src/ext/opcache/tests/jit/ |
H A D | reg_alloc_011.phpt | 11 $i = $y; 12 for ($i=0;$i<1;) 13 for(;$i<1;) 14 for(;$i<1;$i++) 16 for($i=0;$i< 1;$i++)
|
/php-src/ext/gmp/tests/ |
H A D | bug70284.phpt | 8 $inner = 'r:2;a:1:{i:0;a:1:{i:0;r:4;}}'; 9 $exploit = 'a:2:{i:0;s:1:"1";i:1;C:3:"GMP":'.strlen($inner).':{'.$inner.'}}'; 20 for ($i = 0; $i < 5; $i++) { 21 $v[$i] = $fakezval.$i; 29 for ($i = 0; $i < 8; $i++) {
|
/php-src/ext/spl/tests/ |
H A D | bug70366.phpt | 19 $inner = 'i:1234;:i:1;'; 20 …xploit = 'a:5:{i:0;i:1;i:1;C:19:"SplDoublyLinkedList":'.strlen($inner).':{'.$inner.'}i:2;O:3:"obj"… 29 for ($i = 0; $i < 8; $i++) {
|
H A D | SplFixedArray_serialize.phpt | 47 …lFixedArray":6:{i:0;s:3:"foo";i:1;N;i:2;i:42;i:3;O:8:"stdClass":1:{s:4:"prop";s:5:"value";}i:4;a:5…
|
/php-src/ext/snmp/tests/ |
H A D | bug72479.phpt | 12 $poc = 'a:3:{i:1;N;i:2;O:4:"snmp":1:{s:11:"quick_print";'.serialize($arr).'}i:1;R:7;}'; 21 for ($i = 0; $i < 5; $i++) { 22 $v[$i] = $fakezval.$i; 29 for ($i = 0; $i < 8; $i++) {
|
/php-src/ext/gd/libgd/ |
H A D | gdkanji.c | 90 int c, i; in DetectKanjiCode() local 94 i = 0; in DetectKanjiCode() 111 c = str[i++]; in DetectKanjiCode() 386 for (i = 0; from[i] != '\0' && j < BUFSIZ; i++) in do_convert() 390 i++; in do_convert() 395 i++; in do_convert() 400 i++; in do_convert() 423 for (i = 0; from[i] != '\0' && j < BUFSIZ; i++) in do_convert() 514 for (i = 0; tmp[i] != '\0' && j < BUFSIZ; i++) in do_check_and_conv() 523 i += 2; in do_check_and_conv() [all …]
|
/php-src/ext/fileinfo/libmagic/ |
H A D | ascmagic.c | 113 size_t mlen, i, len; in file_ascmagic_with_encoding() local 176 for (i = 0; i < ulen; i++) { in file_ascmagic_with_encoding() 177 if (ubuf[i] == '\n') { in file_ascmagic_with_encoding() 182 last_line_end = i; in file_ascmagic_with_encoding() 188 last_line_end = i; in file_ascmagic_with_encoding() 192 last_line_end = i; in file_ascmagic_with_encoding() 202 if (ubuf[i] == '\033') in file_ascmagic_with_encoding() 204 if (ubuf[i] == '\b') in file_ascmagic_with_encoding() 340 size_t i; in encode_utf8() local 343 for (i = 0; i < ulen; i++) { in encode_utf8() [all …]
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_trace.c | 11 int i; in fpm_trace_get_strz() local 15 i = l % SIZEOF_LONG; in fpm_trace_get_strz() 16 l -= i; in fpm_trace_get_strz() 21 for ( ; i < SIZEOF_LONG; i++) { in fpm_trace_get_strz() 23 if (sz && lc[i]) { in fpm_trace_get_strz() 24 *buf++ = lc[i]; in fpm_trace_get_strz() 30 i = 0; in fpm_trace_get_strz()
|
/php-src/ext/standard/tests/math/ |
H A D | number_format_basic.phpt | 22 for ($i = 0; $i < count($values); $i++) { 23 $res = number_format($values[$i]); 28 for ($i = 0; $i < count($values); $i++) { 29 $res = number_format($values[$i], 2); 34 for ($i = 0; $i < count($values); $i++) { 35 $res = number_format($values[$i], 2, '.', ' '); 40 for ($i = 0; $i < count($values); $i++) { 41 $res = number_format($values[$i], 2, ',' , ' '); 46 for ($i = 0; $i < count($values); $i++) { 47 $res = number_format($values[$i], 2, ' DECIMALS ' , ' THOUSAND ');
|
/php-src/tests/lang/ |
H A D | 021.phpt | 6 for ($i=0; $i<=5; $i++) 8 echo "i=$i\n"; 10 switch($i) { 34 i=0 36 i=1 38 i=2 40 i=3
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_io.c | 36 int i; in ZEND_EXTERN_MODULE_GLOBALS() local 41 for (i = len; i < len + bytes; i++) { in ZEND_EXTERN_MODULE_GLOBALS() 42 if (buf[i] == '\x03') { in ZEND_EXTERN_MODULE_GLOBALS() 43 if (i != len + bytes - 1) { in ZEND_EXTERN_MODULE_GLOBALS() 44 memmove(buf + i, buf + i + 1, len + bytes - i - 1); in ZEND_EXTERN_MODULE_GLOBALS() 47 i--; in ZEND_EXTERN_MODULE_GLOBALS() 50 if (buf[i] == '\n') { in ZEND_EXTERN_MODULE_GLOBALS() 51 PHPDBG_G(input_buflen) = len + bytes - 1 - i; in ZEND_EXTERN_MODULE_GLOBALS() 55 if (i != PHPDBG_MAX_CMD - 1) { in ZEND_EXTERN_MODULE_GLOBALS() 56 buf[i + 1] = 0; in ZEND_EXTERN_MODULE_GLOBALS() [all …]
|