Answer the question
In order to leave comments, you need to log in
How to fix php bug with file output?
I'm trying to output a ~0.5Mb PDF file using Yii:
Script crashes on this line:
Outputs part of the file and exits. Sometimes (once in 10 attempts) it outputs the entire file and proceeds normally.
Who thread faced similar behavior? What can be done?
Worth php5.6 fpm on OS X.
Thanks in advance. \Yii::$app->response->sendFile('file.pdf');
Answer the question
In order to leave comments, you need to log in
Maybe rests on memory_limit ?
how does it crash? with what error?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question