Lines Matching refs:filename_len

394 		if (!PHAR_GET_16(zipentry.filename_len)) {  in phar_parse_zipfile()
398 entry.filename_len = PHAR_GET_16(zipentry.filename_len); in phar_parse_zipfile()
399 entry.filename = (char *) pemalloc(entry.filename_len + 1, entry.is_persistent); in phar_parse_zipfile()
401 if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) { in phar_parse_zipfile()
406 entry.filename[entry.filename_len] = '\0'; in phar_parse_zipfile()
408 if (entry.filename[entry.filename_len - 1] == '/') { in phar_parse_zipfile()
410 if(entry.filename_len > 1) { in phar_parse_zipfile()
411 entry.filename_len--; in phar_parse_zipfile()
438 if (entry.filename_len != PHAR_GET_16(local.filename_len)) { in phar_parse_zipfile()
445 + entry.filename_len in phar_parse_zipfile()
450 + entry.filename_len in phar_parse_zipfile()
454 …if (entry.filename_len == sizeof(".phar/signature.bin")-1 && !strncmp(entry.filename, ".phar/signa… in phar_parse_zipfile()
514 phar_add_virtual_dirs(mydata, entry.filename, entry.filename_len); in phar_parse_zipfile()
597 …if (!actual_alias && entry.filename_len == sizeof(".phar/alias.txt")-1 && !strncmp(entry.filename,… in phar_parse_zipfile()
709 …zend_hash_str_add_mem(&mydata->manifest, entry.filename, entry.filename_len, (void *)&entry, sizeo… in phar_parse_zipfile()
864 phar_add_virtual_dirs(entry->phar, entry->filename, entry->filename_len); in phar_zip_changed_apply_int()
897 PHAR_SET_16(central.filename_len, entry->filename_len + (entry->is_dir ? 1 : 0)); in phar_zip_changed_apply_int()
898 PHAR_SET_16(local.filename_len, entry->filename_len + (entry->is_dir ? 1 : 0)); in phar_zip_changed_apply_int()
1024 …offset = entry->header_offset + sizeof(local) + entry->filename_len + (entry->is_dir ? 1 : 0) + si… in phar_zip_changed_apply_int()
1037 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1047 if (entry->filename_len != php_stream_write(p->centralfp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1057 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1062 if (entry->filename_len != php_stream_write(p->centralfp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1185 entry.filename_len = sizeof(".phar/signature.bin")-1; in phar_zip_applysignature()
1272 entry.filename_len = sizeof(".phar/alias.txt")-1; in phar_zip_flush()
1274 …zend_hash_str_update_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&entry, sizeo… in phar_zip_flush()
1361 entry.filename_len = sizeof(".phar/stub.php")-1; in phar_zip_flush()
1363 …zend_hash_str_update_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&entry, sizeo… in phar_zip_flush()
1385 entry.filename_len = sizeof(".phar/stub.php")-1; in phar_zip_flush()
1389 …if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&ent… in phar_zip_flush()
1402 …zend_hash_str_update_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&entry, sizeo… in phar_zip_flush()