/PHP-5.3/ext/zip/lib/ |
H A D | zip_source_crc.c | 41 struct crc { struct 46 zip_uint32_t crc; member 57 struct crc *ctx; in zip_source_crc() 64 if ((ctx=(struct crc *)malloc(sizeof(*ctx))) == NULL) { in zip_source_crc() 80 struct crc *ctx; in crc_read() 83 ctx = (struct crc *)_ctx; in crc_read() 88 ctx->crc = crc32(0, NULL, 0); in crc_read() 108 if ((st.valid & ZIP_STAT_CRC) && st.crc != ctx->crc) { in crc_read() 124 ctx->crc = crc32(ctx->crc, data, n); in crc_read() 141 st->crc = ctx->crc; in crc_read()
|
H A D | zip_source_pkware.c | 52 static const uLongf *crc = NULL; variable 54 #define CRC32(c, b) (crc[((c) ^ (b)) & 0xff] ^ ((c) >> 8)) 83 if (crc == NULL) in zip_source_pkware() 84 crc = get_crc_table(); in zip_source_pkware() 168 if (header[HEADERLEN-1] != st.crc>>24 in decrypt_header()
|
H A D | zip_stat_index.c | 70 st->crc = za->cdir->entry[index].crc; in zip_stat_index()
|
H A D | zip_close.c | 208 de.crc = za->cdir->entry[i].crc; in zip_close() 277 cd->entry[j].crc = de.crc; in zip_close() 423 de->crc = st.crc; in add_data() 514 uLong crc; in write_cdir() local 528 if (_zip_filerange_crc(out, cd->offset, cd->size, &crc, &za->error) < 0) in write_cdir() 531 snprintf(buf, sizeof(buf), "%08lX", (long)crc); in write_cdir()
|
H A D | zip_stat_init.c | 46 st->crc = 0; in zip_stat_init()
|
H A D | zip_open.c | 409 && (h1->crc != 0 in _zip_headercomp() 414 && (h2->crc != 0 in _zip_headercomp() 422 if ((h1->crc != h2->crc) in _zip_headercomp()
|
H A D | zip_dirent.c | 184 de->crc = 0; in _zip_dirent_init() 274 zde->crc = _zip_read4(&cur); in _zip_dirent_read() 442 _zip_write4(zde->crc, fp); in _zip_dirent_write()
|
H A D | zip_source_zip.c | 106 p->st.crc = 0; in zip_source_zip()
|
H A D | zip.h | 198 zip_uint32_t crc; /* crc of file data */ member
|
H A D | zipint.h | 222 unsigned int crc; /* (cl) CRC-32 of uncompressed data */ member
|
/PHP-5.3/ext/standard/ |
H A D | crc32.c | 32 register php_uint32 crc; in PHP_NAMED_FUNCTION() local 37 crc = crcinit^0xFFFFFFFF; in PHP_NAMED_FUNCTION() 40 crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ]; in PHP_NAMED_FUNCTION() 42 RETVAL_LONG(crc^0xFFFFFFFF); in PHP_NAMED_FUNCTION()
|
H A D | crc32.h | 28 #define CRC32(crc, ch) (crc = (crc >> 8) ^ crc32tab[(crc ^ (ch)) & 0xff]) argument
|
/PHP-5.3/ext/zlib/ |
H A D | zlib.c | 801 ZLIBG(crc) = crc32(0L, Z_NULL, 0); in php_deflate_string() 817 ZLIBG(crc) = crc32(ZLIBG(crc), (const Bytef *) str, str_length); in php_deflate_string() 837 trailer[0] = (char) ZLIBG(crc) & 0xFF; in php_deflate_string() 838 trailer[1] = (char) (ZLIBG(crc) >> 8) & 0xFF; in php_deflate_string() 839 trailer[2] = (char) (ZLIBG(crc) >> 16) & 0xFF; in php_deflate_string() 931 uLong crc = crc32(0L, Z_NULL, 0); in PHP_FUNCTION() local 933 crc = crc32(crc, (const Bytef *) data, data_len); in PHP_FUNCTION() 936 trailer[0] = (char) crc & 0xFF; in PHP_FUNCTION() 937 trailer[1] = (char) (crc >> 8) & 0xFF; in PHP_FUNCTION() 938 trailer[2] = (char) (crc >> 16) & 0xFF; in PHP_FUNCTION() [all …]
|
H A D | php_zlib.h | 31 uLong crc; variable
|
/PHP-5.3/ext/zip/tests/ |
H A D | bug49072.phpt | 15 $r = $o->getStream('file1'); // this file has a wrong crc
|
/PHP-5.3/ext/phar/ |
H A D | zip.c | 813 php_uint32 crc = (php_uint32) ~0; in phar_zip_changed_apply() local 814 CRC32(crc, perms.perms[0]); in phar_zip_changed_apply() 815 CRC32(crc, perms.perms[1]); in phar_zip_changed_apply() 816 PHAR_SET_32(perms.crc32, ~crc); in phar_zip_changed_apply()
|
H A D | phar.c | 2410 php_uint32 crc = ~0; local 2477 CRC32(crc, php_stream_getc(fp)); 2482 if (~crc == crc32) {
|
/PHP-5.3/ext/pcre/pcrelib/ |
H A D | pcre_compile.c | 6111 int crc = memcmp(name, slot+IMM2_SIZE, IN_UCHARS(namelen)); in compile_branch() local 6112 if (crc == 0) in compile_branch() 6124 else crc = -1; /* Current name is a substring */ in compile_branch() 6132 if (crc < 0) in compile_branch()
|
/PHP-5.3/ext/zip/ |
H A D | php_zip.c | 441 add_ascii_assoc_long(return_value, "crc", (long) (sb)->crc); \
|
/PHP-5.3/ext/fileinfo/tests/ |
H A D | magic | 8367 # 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
|