M
M
mitaichik2015-06-09 14:16:27
Yii
mitaichik, 2015-06-09 14:16:27

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

1 answer(s)
A
Andrey Burov, 2015-06-09
@BuriK666

Maybe rests on memory_limit ?
how does it crash? with what error?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question