potentially memory leak in VAR DUMPER #39793
Unanswered
amir-khoshbakht
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
is it memory leak ?
When I run this code, after a few moments, the memory usage shown goes up and continues until it reaches the maximum allowed value and the program closes.
step to produce:
1- make an empty Laravel project.
2- make a new console command.
3- paste this code in its handle() method
This does not happen in either case :
1- using echo() function instead of dump().(commented out)
2-using dump() in an plain .php file.
It consumes exactly 2 MB( 1024 * 1024 * 2 bytes ) more memory each time!!!
Beta Was this translation helpful? Give feedback.
All reactions