Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 25 of 34) sorted by relevance

12

/PHP-8.2/ext/phar/tests/tar/
H A Dbadchecksum.phpt2 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-8.2/ext/phar/tests/tar/files/
H A Dcorrupt_tarmaker.php.inc112 $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 Dtarmaker.php.inc105 $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 Dmake.dangerous.tar.php.inc106 $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-8.2/ext/phar/
H A Dtar.h48 char checksum[8]; /* checksum for header */ member
72 char checksum[8]; /* checksum for header */ member
H A Dtar.c103 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()
263 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
267 memset(hdr->checksum, ' ', sizeof(hdr->checksum)); in phar_parse_tarfile()
355 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
796 memcpy(header.checksum, " ", sizeof(" ")-1); in phar_tar_writeheaders_int()
[all …]
/PHP-8.2/ext/dba/tests/
H A Ddba_cdb_make.phpt17 // print md5 checksum of test.cdb which is generated by cdb_make program
29 // write md5 checksum of generated database file
H A Dbug38698.phpt26 // write md5 checksum of generated database file
/PHP-8.2/ext/opcache/
H A Dzend_accelerator_util_funcs.c460 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len) in zend_adler32() argument
462 unsigned int s1 = checksum & 0xffff; in zend_adler32()
463 unsigned int s2 = (checksum >> 16) & 0xffff; in zend_adler32()
505 unsigned int checksum = ADLER32_INIT; in zend_accel_script_checksum() local
508 checksum = zend_adler32(checksum, mem, (unsigned char*)persistent_script - mem); in zend_accel_script_checksum()
513 zend_adler32(checksum, mem, persistent_script_check_block_size); in zend_accel_script_checksum()
518 checksum = zend_adler32(checksum, mem, size); in zend_accel_script_checksum()
520 return checksum; in zend_accel_script_checksum()
H A Dzend_accelerator_util_funcs.h43 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len);
H A DZendAccelerator.h142 unsigned int checksum; member
H A Dzend_file_cache.c198 uint32_t checksum; member
1121 info.checksum = zend_adler32(ADLER32_INIT, buf, script->size);
1122 info.checksum = zend_adler32(info.checksum, (unsigned char*)ZSTR_VAL(s), info.str_size);
1855 …tual_checksum = zend_adler32(ADLER32_INIT, mem, info.mem_size + info.str_size)) != info.checksum) {
1856 …s' excepted checksum: 0x%08x actual checksum: 0x%08x\n", filename, info.checksum, actual_checksum);
1933 script->dynamic_members.checksum = zend_accel_script_checksum(script);
/PHP-8.2/ext/phar/tests/
H A Dbug75102.phpt2 Bug #75102 (`PharData` says invalid checksum for valid tar)
H A Dbug69453.phpt15 UnexpectedValueException: phar error: "%s%ebug69453.tar.phar" is a corrupted tar file (checksum mis…
H A Dphar_setdefaultstub.phpt321 die("Invalid internal .phar file (checksum error)");
616 die("Invalid internal .phar file (checksum error)");
911 die("Invalid internal .phar file (checksum error)");
H A Dphar_createdefaultstub.phpt301 die("Invalid internal .phar file (checksum error)");
595 die("Invalid internal .phar file (checksum error)");
897 die("Invalid internal .phar file (checksum error)");
/PHP-8.2/ext/hash/
H A Dphp_hash_md.h39 unsigned char checksum[16]; member
H A Dhash_md.c313 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-8.2/win32/build/
H A Dmkdist.php186 $checksum = 0;
188 $checksum += ord($hdr_data[$i]);
190 $checksum += 32;
192 $checksum += ord($hdr_data[$i]);
198 if ($hdr['checksum'] != $checksum) {
/PHP-8.2/ext/zlib/
H A Dphp_zlib.def52 ; checksum functions
/PHP-8.2/ext/standard/tests/filters/
H A Dgh13264.phpt15 // Mess up the checksum
/PHP-8.2/ext/fileinfo/
H A Dmagicdata.patch14 0 ustring \xFD7zXZ\x00 XZ compressed data, checksum
/PHP-8.2/ext/phar/tests/cache_list/files/
H A Dnophar.phar266 die("Invalid internal .phar file (checksum error)");
H A Dopenssl.phar266 die("Invalid internal .phar file (checksum error)");
/PHP-8.2/ext/phar/tests/files/
H A Dinclude_path2.phar266 die("Invalid internal .phar file (checksum error)");

Completed in 53 milliseconds

12