Lines Matching refs:filefp
758 php_stream *filefp; member
827 PHAR_SET_32(central.offset, php_stream_tell(p->filefp)); in phar_zip_changed_apply()
958 entry->header_offset = php_stream_tell(p->filefp); in phar_zip_changed_apply()
961 if (sizeof(local) != php_stream_write(p->filefp, (char *)&local, sizeof(local))) { in phar_zip_changed_apply()
972 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply()
977 if (1 != php_stream_write(p->filefp, "/", 1)) { in phar_zip_changed_apply()
992 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply()
1003 if (sizeof(perms) != php_stream_write(p->filefp, (char *)&perms, sizeof(perms))) { in phar_zip_changed_apply()
1015 …if (SUCCESS != php_stream_copy_to_stream_ex(entry->cfp, p->filefp, entry->compressed_filesize, NUL… in phar_zip_changed_apply()
1029 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0 TSRMLS_CC), p->filefp, entry->un… in phar_zip_changed_apply()
1055 …ompressed_filesize && SUCCESS != php_stream_copy_to_stream_ex(p->old, p->filefp, entry->compressed… in phar_zip_changed_apply()
1095 st = tell = php_stream_tell(pass->filefp); in phar_zip_applysignature()
1097 php_stream_seek(pass->filefp, 0, SEEK_SET); in phar_zip_applysignature()
1098 php_stream_copy_to_stream_ex(pass->filefp, newfile, tell, NULL); in phar_zip_applysignature()
1363 pass.filefp = php_stream_fopen_tmpfile(); in phar_zip_flush()
1365 if (!pass.filefp) { in phar_zip_flush()
1415 php_stream_close(pass.filefp); in phar_zip_flush()
1428 cdir_offset = php_stream_tell(pass.filefp); in phar_zip_flush()
1435 int ret = php_stream_copy_to_stream_ex(pass.centralfp, pass.filefp, PHP_STREAM_COPY_ALL, &clen); in phar_zip_flush()
1450 if (sizeof(eocd) != php_stream_write(pass.filefp, (char *)&eocd, sizeof(eocd))) { in phar_zip_flush()
1457 …if (main_metadata_str.len != php_stream_write(pass.filefp, main_metadata_str.c, main_metadata_str.… in phar_zip_flush()
1467 if (sizeof(eocd) != php_stream_write(pass.filefp, (char *)&eocd, sizeof(eocd))) { in phar_zip_flush()
1491 phar->fp = pass.filefp; in phar_zip_flush()
1498 phar->fp = pass.filefp; in phar_zip_flush()
1504 php_stream_rewind(pass.filefp); in phar_zip_flush()
1505 php_stream_copy_to_stream_ex(pass.filefp, phar->fp, PHP_STREAM_COPY_ALL, NULL); in phar_zip_flush()
1507 php_stream_close(pass.filefp); in phar_zip_flush()