Lines Matching refs:filefp

779 	php_stream *filefp;  member
846 PHAR_SET_32(central.offset, php_stream_tell(p->filefp)); in phar_zip_changed_apply_int()
976 entry->header_offset = php_stream_tell(p->filefp); in phar_zip_changed_apply_int()
979 if (sizeof(local) != php_stream_write(p->filefp, (char *)&local, sizeof(local))) { in phar_zip_changed_apply_int()
990 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
995 if (1 != php_stream_write(p->filefp, "/", 1)) { in phar_zip_changed_apply_int()
1010 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1021 if (sizeof(perms) != php_stream_write(p->filefp, (char *)&perms, sizeof(perms))) { in phar_zip_changed_apply_int()
1033 …if (SUCCESS != php_stream_copy_to_stream_ex(entry->cfp, p->filefp, entry->compressed_filesize, NUL… in phar_zip_changed_apply_int()
1047 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), p->filefp, entry->uncompressed… in phar_zip_changed_apply_int()
1073 …ompressed_filesize && SUCCESS != php_stream_copy_to_stream_ex(p->old, p->filefp, entry->compressed… in phar_zip_changed_apply_int()
1119 tell = php_stream_tell(pass->filefp); in phar_zip_applysignature()
1121 php_stream_seek(pass->filefp, 0, SEEK_SET); in phar_zip_applysignature()
1122 php_stream_copy_to_stream_ex(pass->filefp, newfile, tell, NULL); in phar_zip_applysignature()
1401 pass.filefp = php_stream_fopen_tmpfile(); in phar_zip_flush()
1403 if (!pass.filefp) { in phar_zip_flush()
1453 php_stream_close(pass.filefp); in phar_zip_flush()
1466 cdir_offset = php_stream_tell(pass.filefp); in phar_zip_flush()
1473 int ret = php_stream_copy_to_stream_ex(pass.centralfp, pass.filefp, PHP_STREAM_COPY_ALL, &clen); in phar_zip_flush()
1488 if (sizeof(eocd) != php_stream_write(pass.filefp, (char *)&eocd, sizeof(eocd))) { in phar_zip_flush()
1495 …if (ZSTR_LEN(main_metadata_str.s) != php_stream_write(pass.filefp, ZSTR_VAL(main_metadata_str.s), … in phar_zip_flush()
1505 if (sizeof(eocd) != php_stream_write(pass.filefp, (char *)&eocd, sizeof(eocd))) { in phar_zip_flush()
1529 phar->fp = pass.filefp; in phar_zip_flush()
1536 phar->fp = pass.filefp; in phar_zip_flush()
1542 php_stream_rewind(pass.filefp); in phar_zip_flush()
1543 php_stream_copy_to_stream_ex(pass.filefp, phar->fp, PHP_STREAM_COPY_ALL, NULL); in phar_zip_flush()
1545 php_stream_close(pass.filefp); in phar_zip_flush()