/php-src/ext/phar/tests/tar/ |
H A D | badchecksum.phpt | 2 Phar: tar with bad checksum 13 $a->addFile('hithere', 'contents', null, 'checksum'); 28 phar error: "%sbadchecksum.tar" is a corrupted tar file (checksum mismatch of file "hithere")
|
/php-src/ext/phar/tests/tar/files/ |
H A D | corrupt_tarmaker.php.inc | 112 $checksum = 256; // 8 * ord(' '); 113 $checksum += array_reduce($checkheader, '_pear2tarchecksum'); 115 if ($corrupt === 'checksum') $checksum++; 116 $checksum = pack('a8', sprintf('%6s ', decoct($checksum))); 118 fwrite($this->tmp, $block . $checksum . $blockend, 512);
|
H A D | tarmaker.php.inc | 105 $checksum = 256; // 8 * ord(' '); 106 $checksum += array_reduce($checkheader, '_pear2tarchecksum'); 108 $checksum = pack('a8', sprintf('%6s ', decoct($checksum))); 110 fwrite($this->tmp, (binary)$block . $checksum . $blockend, 512);
|
H A D | make.dangerous.tar.php.inc | 106 $checksum = 256; // 8 * ord(' '); 107 $checksum += array_reduce($checkheader, '_pear2tarchecksum'); 109 $checksum = pack('a8', sprintf('%6s ', decoct($checksum))); 111 fwrite($this->tmp, (binary)$block . $checksum . $blockend, 512);
|
/php-src/ext/phar/ |
H A D | tar.h | 48 char checksum[8]; /* checksum for header */ member 72 char checksum[8]; /* checksum for header */ member
|
H A D | tar.c | 106 uint32_t checksum = phar_tar_number(header->checksum, sizeof(header->checksum)); in phar_is_tar() local 108 char save[sizeof(header->checksum)], *bname; in phar_is_tar() 115 memcpy(save, header->checksum, sizeof(header->checksum)); in phar_is_tar() 116 memset(header->checksum, ' ', sizeof(header->checksum)); in phar_is_tar() 117 is_tar = (checksum == phar_tar_checksum(buf, 512)); in phar_is_tar() 118 memcpy(header->checksum, save, sizeof(header->checksum)); in phar_is_tar() 258 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile() 262 memset(hdr->checksum, ' ', sizeof(hdr->checksum)); in phar_parse_tarfile() 350 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile() 791 memcpy(header.checksum, " ", sizeof(" ")-1); in phar_tar_writeheaders_int() [all …]
|
/php-src/ext/dba/tests/ |
H A D | dba_cdb_make.phpt | 17 // print md5 checksum of test.cdb which is generated by cdb_make program 29 // write md5 checksum of generated database file
|
H A D | bug38698.phpt | 26 // write md5 checksum of generated database file
|
/php-src/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 515 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len) in zend_adler32() argument 517 unsigned int s1 = checksum & 0xffff; in zend_adler32() 518 unsigned int s2 = (checksum >> 16) & 0xffff; in zend_adler32() 556 unsigned int checksum = ADLER32_INIT; in zend_accel_script_checksum() local 559 checksum = zend_adler32(checksum, mem, (unsigned char*)persistent_script - mem); in zend_accel_script_checksum() 564 zend_adler32(checksum, mem, persistent_script_check_block_size); in zend_accel_script_checksum() 569 checksum = zend_adler32(checksum, mem, size); in zend_accel_script_checksum() 571 return checksum; in zend_accel_script_checksum()
|
H A D | zend_accelerator_util_funcs.h | 43 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len);
|
H A D | zend_file_cache.c | 202 uint32_t checksum; member 1156 info.checksum = zend_adler32(ADLER32_INIT, buf, script->size); 1157 info.checksum = zend_adler32(info.checksum, (unsigned char*)ZSTR_VAL(s), info.str_size); 1906 …tual_checksum = zend_adler32(ADLER32_INIT, mem, info.mem_size + info.str_size)) != info.checksum) { 1907 …s' excepted checksum: 0x%08x actual checksum: 0x%08x\n", filename, info.checksum, actual_checksum);
|
/php-src/ext/sockets/tests/ |
H A D | socket_icmp.phpt | 28 $checksum = function($header): int { 37 $header = pack('C2n3a*', $type, $code, $checksum($header), $identifier, $sequence, $data);
|
/php-src/ext/phar/tests/ |
H A D | bug75102.phpt | 2 Bug #75102 (`PharData` says invalid checksum for valid tar)
|
H A D | bug69453.phpt | 15 UnexpectedValueException: phar error: "%s%ebug69453.tar.phar" is a corrupted tar file (checksum mis…
|
H A D | phar_createdefaultstub.phpt | 301 die("Invalid internal .phar file (checksum error)"); 595 die("Invalid internal .phar file (checksum error)"); 897 die("Invalid internal .phar file (checksum error)");
|
H A D | phar_setdefaultstub.phpt | 321 die("Invalid internal .phar file (checksum error)"); 616 die("Invalid internal .phar file (checksum error)"); 911 die("Invalid internal .phar file (checksum error)");
|
/php-src/ext/hash/ |
H A D | php_hash_md.h | 39 unsigned char checksum[16]; member
|
H A D | hash_md.c | 313 t = context->checksum[15]; in MD2_Transform() 315 t = context->checksum[i] ^= MD2_S[block[i] ^ t]; in MD2_Transform() 354 MD2_Transform(context, context->checksum); in PHP_MD2Final()
|
/php-src/win32/build/ |
H A D | mkdist.php | 186 $checksum = 0; 188 $checksum += ord($hdr_data[$i]); 190 $checksum += 32; 192 $checksum += ord($hdr_data[$i]); 198 if ($hdr['checksum'] != $checksum) {
|
/php-src/ext/zlib/ |
H A D | php_zlib.def | 52 ; checksum functions
|
/php-src/ext/standard/tests/filters/ |
H A D | gh13264.phpt | 15 // Mess up the checksum
|
/php-src/ext/phar/tests/files/ |
H A D | openssl.phar | 266 die("Invalid internal .phar file (checksum error)");
|
H A D | openssl256.phar | 266 die("Invalid internal .phar file (checksum error)");
|
H A D | openssl512.phar | 266 die("Invalid internal .phar file (checksum error)");
|
/php-src/ext/phar/tests/cache_list/files/ |
H A D | nophar.phar | 266 die("Invalid internal .phar file (checksum error)");
|