Skip to content

Update fetch.php to lower memory consumption#518

Closed
allandanton wants to merge 1 commit intoseblucas:masterfrom
allandanton:master
Closed

Update fetch.php to lower memory consumption#518
allandanton wants to merge 1 commit intoseblucas:masterfrom
allandanton:master

Conversation

@allandanton
Copy link

On big eBooks like comic books you can hit the PHP memory limit. With this changes there is no need to raise the memory limit in php.ini. Also readfile is recommended in the php documentation instead of fpassthru for most cases so I changed it. Also if you download binary data make sure that there is no output after that therefore an explicit exit() at the end.

On big eBooks like comic books you can hit the PHP memory limit. With this changes there is no need to raise the memory limit in php.ini. Also readfile is recommended in the php documentation instead of fpassthru for most cases so I changed it. Also if you download binary data make sure that there is no output after that therefore an explicit exit() at the end.
@mikespub
Copy link

Included in #522 and release 1.2.2 at https://github.com/mikespub-org/seblucas-cops

@allandanton allandanton closed this by deleting the head repository Jul 14, 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

Successfully merging this pull request may close these issues.

2 participants