Lines Matching refs:locator

198 	phar_zip_dir_end locator;  in phar_parse_zipfile()  local
199 char buf[sizeof(locator) + 65536]; in phar_parse_zipfile()
209 if (size > sizeof(locator) + 65536) { in phar_parse_zipfile()
211 size = sizeof(locator) + 65536; in phar_parse_zipfile()
232 memcpy((void *)&locator, (void *) p, sizeof(locator)); in phar_parse_zipfile()
233 if (PHAR_GET_16(locator.centraldisk) != 0 || PHAR_GET_16(locator.disknumber) != 0) { in phar_parse_zipfile()
242 if (PHAR_GET_16(locator.counthere) != PHAR_GET_16(locator.count)) { in phar_parse_zipfile()
254 if (PHAR_GET_16(locator.comment_len)) { in phar_parse_zipfile()
256 metadata = p + sizeof(locator); in phar_parse_zipfile()
258 if (PHAR_GET_16(locator.comment_len) != size - (metadata - buf)) { in phar_parse_zipfile()
267 mydata->metadata_len = PHAR_GET_16(locator.comment_len); in phar_parse_zipfile()
269 …if (phar_parse_metadata(&metadata, &mydata->metadata, PHAR_GET_16(locator.comment_len)) == FAILURE… in phar_parse_zipfile()
273 …ZVAL_NEW_STR(&mydata->metadata, zend_string_init(metadata, PHAR_GET_16(locator.comment_len), mydat… in phar_parse_zipfile()
310 php_stream_seek(fp, PHAR_GET_32(locator.cdir_offset), SEEK_SET); in phar_parse_zipfile()
312 zend_hash_init(&mydata->manifest, PHAR_GET_16(locator.count), in phar_parse_zipfile()
316 zend_hash_init(&mydata->virtual_dirs, PHAR_GET_16(locator.count) * 2, in phar_parse_zipfile()
367 for (i = 0; i < PHAR_GET_16(locator.count); ++i) { in phar_parse_zipfile()
445 php_stream_seek(fp, PHAR_GET_32(locator.cdir_offset), SEEK_SET); in phar_parse_zipfile()
447 php_stream_copy_to_stream_ex(fp, sigfile, beforeus - PHAR_GET_32(locator.cdir_offset), NULL); in phar_parse_zipfile()
449 php_stream_write(sigfile, metadata, PHAR_GET_16(locator.comment_len)); in phar_parse_zipfile()
477 if (i != PHAR_GET_16(locator.count) - 1) { in phar_parse_zipfile()