Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS corrupt file #329

Closed
pomborenato opened this issue Aug 11, 2022 · 2 comments
Closed

IIS corrupt file #329

pomborenato opened this issue Aug 11, 2022 · 2 comments

Comments

@pomborenato
Copy link

i'm using in IIS with PHP Version 5.2.8 and file generated not open in correct format.

@alex-twbsd
Copy link

I had same issue on FreeBSD+Apache. Just need to clear output buffer before sending the header:

// clear output buffer
ob_end_clean();

header("Content-Type"........
.....
$writer->writeToStdOut();
.....

@mk-j
Copy link
Owner

mk-j commented May 31, 2023

If you can provide a short php program which reproduces the problem, then we can reproduce it and fix it. Otherwise there isn't enough information to reproduce and fix the reported issue.

@mk-j mk-j closed this as completed May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants