Lines Matching refs:locator

168 	phar_zip_dir_end locator;  in phar_parse_zipfile()  local
169 char buf[sizeof(locator) + 65536]; in phar_parse_zipfile()
179 if (size > sizeof(locator) + 65536) { in phar_parse_zipfile()
181 size = sizeof(locator) + 65536; in phar_parse_zipfile()
202 if ((p - buf) + sizeof(locator) <= size && !memcmp(p + 1, "K\5\6", 3)) { in phar_parse_zipfile()
203 memcpy((void *)&locator, (void *) p, sizeof(locator)); in phar_parse_zipfile()
204 if (PHAR_GET_16(locator.centraldisk) != 0 || PHAR_GET_16(locator.disknumber) != 0) { in phar_parse_zipfile()
213 if (PHAR_GET_16(locator.counthere) != PHAR_GET_16(locator.count)) { in phar_parse_zipfile()
225 if (PHAR_GET_16(locator.comment_len)) { in phar_parse_zipfile()
227 metadata = p + sizeof(locator); in phar_parse_zipfile()
229 if (PHAR_GET_16(locator.comment_len) != size - (metadata - buf)) { in phar_parse_zipfile()
238 mydata->metadata_len = PHAR_GET_16(locator.comment_len); in phar_parse_zipfile()
240 …if (phar_parse_metadata(&metadata, &mydata->metadata, PHAR_GET_16(locator.comment_len) TSRMLS_CC) … in phar_parse_zipfile()
251 metadata = pestrndup(metadata, PHAR_GET_16(locator.comment_len), mydata->is_persistent); in phar_parse_zipfile()
252 ZVAL_STRINGL(mydata->metadata, metadata, PHAR_GET_16(locator.comment_len), 0); in phar_parse_zipfile()
290 php_stream_seek(fp, PHAR_GET_32(locator.cdir_offset), SEEK_SET); in phar_parse_zipfile()
292 zend_hash_init(&mydata->manifest, PHAR_GET_16(locator.count), in phar_parse_zipfile()
296 zend_hash_init(&mydata->virtual_dirs, PHAR_GET_16(locator.count) * 2, in phar_parse_zipfile()
351 for (i = 0; i < PHAR_GET_16(locator.count); ++i) { in phar_parse_zipfile()
424 php_stream_seek(fp, PHAR_GET_32(locator.cdir_offset), SEEK_SET); in phar_parse_zipfile()
426 phar_stream_copy_to_stream(fp, sigfile, beforeus - PHAR_GET_32(locator.cdir_offset), NULL); in phar_parse_zipfile()
428 php_stream_write(sigfile, metadata, PHAR_GET_16(locator.comment_len)); in phar_parse_zipfile()
455 if (i != PHAR_GET_16(locator.count) - 1) { in phar_parse_zipfile()