Home
last modified time | relevance | path

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

12

/PHP-7.1/ext/phar/tests/tar/
H A Dbadchecksum.phpt2 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.1/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-7.1/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()
259 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
263 memset(hdr->checksum, ' ', sizeof(hdr->checksum)); in phar_parse_tarfile()
340 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
775 strncpy(header.checksum, " ", sizeof(" ")-1); in phar_tar_writeheaders_int()
[all …]
/PHP-7.1/ext/dba/tests/
H A Ddba_cdb_make.phpt14 // print md5 checksum of test.cdb which is generated by cdb_make program
26 // write md5 checksum of generated database file
H A Dbug38698.phpt24 // write md5 checksum of generated database file
/PHP-7.1/ext/opcache/
H A Dzend_accelerator_util_funcs.h40 unsigned int zend_adler32(unsigned int checksum, signed char *buf, uint len);
H A Dzend_accelerator_util_funcs.c738 unsigned int zend_adler32(unsigned int checksum, signed char *buf, uint len) in zend_adler32() argument
740 unsigned int s1 = checksum & 0xffff; in zend_adler32()
741 unsigned int s2 = (checksum >> 16) & 0xffff; in zend_adler32()
783 unsigned int checksum = ADLER32_INIT; in zend_accel_script_checksum() local
786 checksum = zend_adler32(checksum, mem, (signed char*)persistent_script - mem); in zend_accel_script_checksum()
791 zend_adler32(checksum, mem, persistent_script_check_block_size); in zend_accel_script_checksum()
796 checksum = zend_adler32(checksum, mem, size); in zend_accel_script_checksum()
798 return checksum; in zend_accel_script_checksum()
H A Dzend_file_cache.c161 uint32_t checksum; member
843 info.checksum = zend_adler32(ADLER32_INIT, buf, script->size); in zend_file_cache_script_store()
844 …info.checksum = zend_adler32(info.checksum, (signed char*)ZSTR_VAL((zend_string*)ZCG(mem)), info.s… in zend_file_cache_script_store()
1424 zend_adler32(ADLER32_INIT, mem, info.mem_size + info.str_size) != info.checksum) { in zend_file_cache_script_load()
1505 script->dynamic_members.checksum = zend_accel_script_checksum(script); in zend_file_cache_script_load()
H A DZendAccelerator.h163 unsigned int checksum; member
H A DZendAccelerator.c1263 …new_persistent_script->dynamic_members.checksum = zend_accel_script_checksum(new_persistent_script… in store_script_in_file_cache()
1379 …new_persistent_script->dynamic_members.checksum = zend_accel_script_checksum(new_persistent_script… in cache_script_in_shared_memory()
1850 unsigned int checksum = zend_accel_script_checksum(persistent_script); in persistent_compile_file() local
1851 if (checksum != persistent_script->dynamic_members.checksum ) { in persistent_compile_file()
1854 …TR_VAL(persistent_script->script.filename), persistent_script->dynamic_members.checksum, checksum); in persistent_compile_file()
H A DREADME186 Check the cache checksum each N requests.
188 Because calculating the checksum impairs performance, this directive should
/PHP-7.1/win32/build/
H A Dmkdist.php191 $checksum = 0;
193 $checksum += ord($hdr_data{$i});
195 $checksum += 32;
197 $checksum += ord($hdr_data{$i});
203 if ($hdr['checksum'] != $checksum) {
/PHP-7.1/ext/hash/
H A Dphp_hash_md.h91 unsigned char checksum[16]; member
H A Dhash_md.c651 t = context->checksum[15]; in MD2_Transform()
653 t = context->checksum[i] ^= MD2_S[block[i] ^ t]; in MD2_Transform()
692 MD2_Transform(context, context->checksum); in PHP_MD2Final()
/PHP-7.1/ext/phar/tests/
H A Dbug69453.phpt17 UnexpectedValueException: phar error: "%s%ebug69453.tar.phar" is a corrupted tar file (checksum mis…
H A Dphar_createdefaultstub.phpt302 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 Dphar_setdefaultstub.phpt322 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.1/ext/zlib/
H A Dphp_zlib.def50 ; checksum functions
/PHP-7.1/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-7.1/ext/phar/tests/files/
H A Dinclude_path2.phar266 die("Invalid internal .phar file (checksum error)");
H A Dnophar.phar266 die("Invalid internal .phar file (checksum error)");

Completed in 74 milliseconds

12