Lines Matching refs:filename_len

180 …if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.met…  in phar_tar_process_metadata()
188filename_len >= sizeof(".phar/.metadata/") + sizeof("/.metadata.bin") - 1 && NULL != (mentry = zen… in phar_tar_process_metadata()
366 entry.filename_len = entry.uncompressed_filesize; in phar_parse_tarfile()
369 if (entry.filename_len == UINT_MAX || entry.filename_len == 0) { in phar_parse_tarfile()
377 entry.filename = pemalloc(entry.filename_len+1, myphar->is_persistent); in phar_parse_tarfile()
379 read = php_stream_read(fp, entry.filename, entry.filename_len); in phar_parse_tarfile()
380 if (read != entry.filename_len) { in phar_parse_tarfile()
389 entry.filename[entry.filename_len] = '\0'; in phar_parse_tarfile()
436 entry.filename_len = i+j; in phar_parse_tarfile()
438 if (name[entry.filename_len - 1] == '/') { in phar_parse_tarfile()
440 entry.filename_len--; in phar_parse_tarfile()
442 entry.filename = pestrndup(name, entry.filename_len, myphar->is_persistent); in phar_parse_tarfile()
452 entry.filename_len = i; in phar_parse_tarfile()
455 if (i > 0 && entry.filename[entry.filename_len - 1] == '/') { in phar_parse_tarfile()
457 entry.filename[entry.filename_len - 1] = '\0'; in phar_parse_tarfile()
458 entry.filename_len--; in phar_parse_tarfile()
463 phar_add_virtual_dirs(myphar, entry.filename, entry.filename_len); in phar_parse_tarfile()
513 …newentry = zend_hash_str_update_mem(&myphar->manifest, entry.filename, entry.filename_len, (void*)… in phar_parse_tarfile()
520 …if (entry.filename_len >= sizeof(".phar/.metadata")-1 && !memcmp(entry.filename, ".phar/.metadata"… in phar_parse_tarfile()
531 …if (!actual_alias && entry.filename_len == sizeof(".phar/alias.txt")-1 && !strncmp(entry.filename,… in phar_parse_tarfile()
734 phar_add_virtual_dirs(entry->phar, entry->filename, entry->filename_len); in phar_tar_writeheaders_int()
737 if (entry->filename_len > 100) { in phar_tar_writeheaders_int()
739 if (entry->filename_len > 256) { in phar_tar_writeheaders_int()
745 boundary = entry->filename + entry->filename_len - 101; in phar_tar_writeheaders_int()
756 memcpy(header.name, boundary + 1, entry->filename_len - (boundary + 1 - entry->filename)); in phar_tar_writeheaders_int()
758 memcpy(header.name, entry->filename, entry->filename_len); in phar_tar_writeheaders_int()
898 zend_hash_str_del(&(entry->phar->manifest), entry->filename, entry->filename_len); in phar_tar_setmetadata()
913 …if (entry->filename_len >= sizeof(".phar/.metadata") && !memcmp(entry->filename, ".phar/.metadata"… in phar_tar_setupmetadata()
914 …if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.met… in phar_tar_setupmetadata()
918filename_len >= sizeof(".phar/.metadata/") + sizeof("/.metadata.bin") - 1 && !zend_hash_str_exists… in phar_tar_setupmetadata()
947 newentry.filename_len = lookfor_len; in phar_tar_setupmetadata()
999 entry.filename_len = sizeof(".phar/alias.txt")-1; in phar_tar_flush()
1017 …zend_hash_str_update_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&entry, sizeo… in phar_tar_flush()
1058 entry.filename_len = sizeof(".phar/stub.php")-1; in phar_tar_flush()
1059 …zend_hash_str_update_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&entry, sizeo… in phar_tar_flush()
1077 entry.filename_len = sizeof(".phar/stub.php")-1; in phar_tar_flush()
1081 …if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&ent… in phar_tar_flush()
1094 …zend_hash_str_update_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&entry, sizeo… in phar_tar_flush()
1137 newentry.filename_len = sizeof(".phar/.metadata.bin")-1; in phar_tar_flush()
1192 entry.filename_len = sizeof(".phar/signature.bin")-1; in phar_tar_flush()
1228 entry.filename_len = phar_tar_writeheaders_int(&entry, (void *)&pass); in phar_tar_flush()