Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento\Framework\DataObject::__call() - print_r() is dangerous #2638

Closed
josephmcdermott opened this issue Dec 8, 2015 · 2 comments
Closed

Comments

@josephmcdermott
Copy link
Contributor

This method throws an exception on failure:

new \Magento\Framework\Phrase('Invalid method %1::%2(%3)', [get_class($this), $method, print_r($args, 1)])

If the $args array contains an object / objects, this will consume a huge amount of memory (to the point it kills my instance locally). For example I discovered this whilst attempting to call a method which did not exist and passed a Product instance as an argument.

@shiftedreality
Copy link
Member

Hi @josephmcdermott

Thank you for pointing this issue. I created internal ticket MAGETWO-47881

@vzabaznov
Copy link
Contributor

Hi @josephmcdermott , issue was closed and delivered, please check the fresh magento version

magento-engcom-team pushed a commit that referenced this issue Jun 4, 2018
[earl] MAGETWO-91958: EE install fails on 7.2.5 with fatal error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants