'Allowed memory exhausted on exec command not causing exception
I am unzipping large chunked zip file using exec in Laravel PHP. With certain situations, an error occurs in the form of an excessive memory usage:
Allowed memory size of 2097152 byte s exhausted
My problem is that I get this message in the system log / artisan console, but not in the PHP. Inside the PHP my code just won't continue executing after the exec line, but it does not cause any error/exception, which prevents me to react informing the user or retrying (or, at least, deleting the now useless chunks).
Is it possible to know inside PHP when this problem is occurring?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
