When I use ActiverRecord to deliberately query a large number of records, fill up memory and open debug, it will show “Allowed memory size of 134217728 bytes exhausted” (tried to allocate 4096 bytes). However, all log information is not written to app. log.
When I read large files directly with file_get_contents(), it will show: Out of memory (allocated 2097152) (tried to allocate 119895576 bytes), you can find this error in app. log.
Yii2 & PHP7.1