Home
last modified time | relevance | path

Searched refs:eocd (Results 1 – 2 of 2) sorted by relevance

/PHP-5.3/ext/zip/lib/
H A Dzip_open.c169 _zip_readcdir(FILE *fp, off_t buf_offset, unsigned char *buf, unsigned char *eocd, int buflen, in _zip_readcdir() argument
177 comlen = buf + buflen - eocd - EOCDLEN; in _zip_readcdir()
185 if (memcmp(eocd, EOCD_MAGIC, 4) != 0) { in _zip_readcdir()
190 if (memcmp(eocd+4, "\0\0\0\0", 4) != 0) { in _zip_readcdir()
195 cdp = eocd + 8; in _zip_readcdir()
209 if (((zip_uint64_t)cd->offset)+cd->size > buf_offset + (eocd-buf)) { in _zip_readcdir()
231 if ((cd->comment=(char *)_zip_memdup(eocd+EOCDLEN, in _zip_readcdir()
/PHP-5.3/ext/phar/
H A Dzip.c1179 phar_zip_dir_end eocd; in phar_zip_flush() local
1392 memset(&eocd, 0, sizeof(eocd)); in phar_zip_flush()
1394 strncpy(eocd.signature, "PK\5\6", 4); in phar_zip_flush()
1400 PHAR_SET_16(eocd.count, zend_hash_num_elements(&phar->manifest) + 1); in phar_zip_flush()
1402 PHAR_SET_16(eocd.counthere, zend_hash_num_elements(&phar->manifest)); in phar_zip_flush()
1403 PHAR_SET_16(eocd.count, zend_hash_num_elements(&phar->manifest)); in phar_zip_flush()
1438 PHAR_SET_32(eocd.cdir_size, cdir_size); in phar_zip_flush()
1439 PHAR_SET_32(eocd.cdir_offset, cdir_offset); in phar_zip_flush()
1457 PHAR_SET_16(eocd.comment_len, main_metadata_str.len); in phar_zip_flush()
1459 if (sizeof(eocd) != php_stream_write(pass.filefp, (char *)&eocd, sizeof(eocd))) { in phar_zip_flush()
[all …]

Completed in 11 milliseconds