When I do print_r($request); exit(); for my request.
I get the following error in my log:
[2017-09-06 15:19:44] production.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Allowed memory size of 134217728 bytes exhausted (tried to allocate 90181632 bytes) in [path to file reducted]
Stack trace:
#0 {main}
Why on earth would printing out the request array use so much memory? That can not be right can it?
This happens for all my requests, I am posting a simple string from a form. I am trying to print the request array right after getting into my controller.
Incidently I am not sure what is the q parameter. I do not put it there but it seems to be on all my requests but only in production not in development.
My bad, I assumed that was what you meant by the request array, what info are you trying to get?
I am just trying to debug my app.
I was trying to save the data from the request to the database but I got an error on production because of the 'q' parameter that appears from nowhere.
In trying to debug I tried to print_r the request, but I got out of memory error and just wondering if its normal, I can imagine why print_r($request) would cause out of memory.