Lines Matching refs:filefp
814 php_stream *filefp; member
887 PHAR_SET_32(central.offset, php_stream_tell(p->filefp)); in phar_zip_changed_apply_int()
1017 entry->header_offset = php_stream_tell(p->filefp); in phar_zip_changed_apply_int()
1020 if (sizeof(local) != php_stream_write(p->filefp, (char *)&local, sizeof(local))) { in phar_zip_changed_apply_int()
1031 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1036 if (1 != php_stream_write(p->filefp, "/", 1)) { in phar_zip_changed_apply_int()
1051 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1062 if (sizeof(perms) != php_stream_write(p->filefp, (char *)&perms, sizeof(perms))) { in phar_zip_changed_apply_int()
1074 …if (SUCCESS != php_stream_copy_to_stream_ex(entry->cfp, p->filefp, entry->compressed_filesize, NUL… in phar_zip_changed_apply_int()
1088 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), p->filefp, entry->uncompressed… in phar_zip_changed_apply_int()
1114 …ompressed_filesize && SUCCESS != php_stream_copy_to_stream_ex(p->old, p->filefp, entry->compressed… in phar_zip_changed_apply_int()
1160 tell = php_stream_tell(pass->filefp); in phar_zip_applysignature()
1162 php_stream_seek(pass->filefp, 0, SEEK_SET); in phar_zip_applysignature()
1163 php_stream_copy_to_stream_ex(pass->filefp, newfile, tell, NULL); in phar_zip_applysignature()
1422 pass.filefp = php_stream_fopen_tmpfile(); in phar_zip_flush()
1424 if (!pass.filefp) { in phar_zip_flush()
1474 php_stream_close(pass.filefp); in phar_zip_flush()
1487 cdir_offset = php_stream_tell(pass.filefp); in phar_zip_flush()
1494 int ret = php_stream_copy_to_stream_ex(pass.centralfp, pass.filefp, PHP_STREAM_COPY_ALL, &clen); in phar_zip_flush()
1509 if (sizeof(eocd) != php_stream_write(pass.filefp, (char *)&eocd, sizeof(eocd))) { in phar_zip_flush()
1516 …if (ZSTR_LEN(main_metadata_str.s) != php_stream_write(pass.filefp, ZSTR_VAL(main_metadata_str.s), … in phar_zip_flush()
1526 if (sizeof(eocd) != php_stream_write(pass.filefp, (char *)&eocd, sizeof(eocd))) { in phar_zip_flush()
1550 phar->fp = pass.filefp; in phar_zip_flush()
1557 phar->fp = pass.filefp; in phar_zip_flush()
1563 php_stream_rewind(pass.filefp); in phar_zip_flush()
1564 php_stream_copy_to_stream_ex(pass.filefp, phar->fp, PHP_STREAM_COPY_ALL, NULL); in phar_zip_flush()
1566 php_stream_close(pass.filefp); in phar_zip_flush()