/PHP-7.4/ext/phar/tests/tar/ |
H A D | badchecksum.phpt | 2 Phar: tar with bad checksum 13 $a->addFile('hithere', 'contents', null, 'checksum'); 29 phar error: "%sbadchecksum.tar" is a corrupted tar file (checksum mismatch of file "hithere")
|
/PHP-7.4/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 | 103 uint32_t checksum = phar_tar_number(header->checksum, sizeof(header->checksum)); in phar_is_tar() local 105 char save[sizeof(header->checksum)], *bname; in phar_is_tar() 112 memcpy(save, header->checksum, sizeof(header->checksum)); in phar_is_tar() 113 memset(header->checksum, ' ', sizeof(header->checksum)); in phar_is_tar() 114 ret = (checksum == phar_tar_checksum(buf, 512)); in phar_is_tar() 115 memcpy(header->checksum, save, sizeof(header->checksum)); in phar_is_tar() 267 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile() 271 memset(hdr->checksum, ' ', sizeof(hdr->checksum)); in phar_parse_tarfile() 359 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile() 794 memcpy(header.checksum, " ", sizeof(" ")-1); in phar_tar_writeheaders_int() [all …]
|
/PHP-7.4/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-7.4/ext/dba/tests/ |
H A D | dba_cdb_make.phpt | 14 // print md5 checksum of test.cdb which is generated by cdb_make program 26 // write md5 checksum of generated database file
|
H A D | bug38698.phpt | 24 // write md5 checksum of generated database file
|
/PHP-7.4/ext/opcache/ |
H A D | zend_accelerator_util_funcs.h | 38 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len);
|
H A D | zend_accelerator_util_funcs.c | 845 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len) in zend_adler32() argument 847 unsigned int s1 = checksum & 0xffff; in zend_adler32() 848 unsigned int s2 = (checksum >> 16) & 0xffff; in zend_adler32() 890 unsigned int checksum = ADLER32_INIT; in zend_accel_script_checksum() local 893 checksum = zend_adler32(checksum, mem, (unsigned char*)persistent_script - mem); in zend_accel_script_checksum() 898 zend_adler32(checksum, mem, persistent_script_check_block_size); in zend_accel_script_checksum() 903 checksum = zend_adler32(checksum, mem, size); in zend_accel_script_checksum() 905 return checksum; in zend_accel_script_checksum()
|
H A D | ZendAccelerator.h | 137 unsigned int checksum; member
|
H A D | zend_file_cache.c | 171 uint32_t checksum; member 940 info.checksum = zend_adler32(ADLER32_INIT, buf, script->size); 941 …info.checksum = zend_adler32(info.checksum, (unsigned char*)ZSTR_VAL((zend_string*)ZCG(mem)), info… 1612 …tual_checksum = zend_adler32(ADLER32_INIT, mem, info.mem_size + info.str_size)) != info.checksum) { 1613 …s' excepted checksum: 0x%08x actual checksum: 0x%08x\n", filename, info.checksum, actual_checksum); 1695 script->dynamic_members.checksum = zend_accel_script_checksum(script);
|
/PHP-7.4/ext/phar/tests/ |
H A D | bug75102.phpt | 2 Bug #75102 (`PharData` says invalid checksum for valid tar)
|
H A D | bug69453.phpt | 17 UnexpectedValueException: phar error: "%s%ebug69453.tar.phar" is a corrupted tar file (checksum mis…
|
H A D | phar_createdefaultstub.phpt | 302 die("Invalid internal .phar file (checksum error)"); 596 die("Invalid internal .phar file (checksum error)"); 898 die("Invalid internal .phar file (checksum error)");
|
H A D | phar_setdefaultstub.phpt | 322 die("Invalid internal .phar file (checksum error)"); 617 die("Invalid internal .phar file (checksum error)"); 912 die("Invalid internal .phar file (checksum error)");
|
/PHP-7.4/ext/hash/ |
H A D | php_hash_md.h | 89 unsigned char checksum[16]; member
|
H A D | hash_md.c | 649 t = context->checksum[15]; in MD2_Transform() 651 t = context->checksum[i] ^= MD2_S[block[i] ^ t]; in MD2_Transform() 690 MD2_Transform(context, context->checksum); in PHP_MD2Final()
|
/PHP-7.4/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-7.4/ext/zlib/ |
H A D | php_zlib.def | 52 ; checksum functions
|
/PHP-7.4/ext/phar/tests/cache_list/files/ |
H A D | nophar.phar | 266 die("Invalid internal .phar file (checksum error)");
|
H A D | openssl.phar | 266 die("Invalid internal .phar file (checksum error)");
|
/PHP-7.4/ext/phar/tests/files/ |
H A D | include_path2.phar | 266 die("Invalid internal .phar file (checksum error)");
|
H A D | nophar.phar | 266 die("Invalid internal .phar file (checksum error)");
|
H A D | openssl.phar | 266 die("Invalid internal .phar file (checksum error)");
|