Hello,
i have too often issues with the Debug\Exception, and i really wish we could easily turn it off even in development mode on.
this time, in development mode, i have a controller and a view that works fine, and i add comments : like 50 lines of commented mixed php/html code in my view
PHP Code:
<?php /*
[50 lines of mixed html & php code]
*/ ?>
and then the app crash with this in the log and the Debug\Exception display that goes with
Code:
CRITICAL - 2021-11-03 10:10:23 --> Allowed memory size of 134217728 bytes exhausted (tried to allocate 18788264 bytes)
#0 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
#1 {main}
i comment the CI_ENVIRONMENT = development in the .env file and then it works fine, not even an error in the logs...
This is way too often that the Debug\Exception code crash the app requesting more memory, and not displaying the real error, when there is one.
This time there is not even an error in my code : the app crashs on PHP comments.