Comments (4)
That's odd, print_r
should handle recursion internally. Do you have an idea of what kind of data it's trying to output, that uses so much memory?
from whoops.
I have tracked it down to a Doctrine Entity that I'm storing in session.
Since I'm using Doctrine in my project already, I just replaced the call to print_r
with \Doctrine\Common\Util\Debug::dump($value)
.
Maybe code that checks for Doctrine and uses this method instead could be added?
Anyway, thanks for the quick response.
from whoops.
Hey, I had exactly same problem. I fixed it by replacing print_r with var_dump in mentioned line:
Now it works like a charm :)
from whoops.
I have bumped into the same issue: Replacing print_r
with var_dump
in Whoops/Util/TemplateHelper.php
fixes this. So it seems that print_r
should handle recursion internally, but it doesn't. I checked and on PHP fora this is familiar difference the two calls, where var_dump
is actually designed to bypass this issue of print_r
. I have added a simple PR for this now: #545
from whoops.
Related Issues (20)
- Trying to get in touch regarding a security issue HOT 1
- Occasional errors with zlib.output_compression = On HOT 1
- Catch php.ini warnings HOT 2
- Getting PHP Parse error when running the package in PHP 5.6.40 version HOT 6
- A way to add extra information HOT 4
- 2.14.4 Contains syntax not compatible with PHP ^5.5.9 HOT 2
- Adding an additional member variable and getter to PrettyPageHandler HOT 1
- Paystack_public_key
- Search logos HOT 3
- ArrayAccess Return Type issue HOT 1
- Is it able to run with swoole? HOT 1
- How to get exception? HOT 1
- E_NOTICE & E_WARNING just showing as plain text HOT 1
- PrettyPageHandler: make first frame with comments active on page load HOT 5
- Current line highlight does not work HOT 1
- Bug report. HOT 3
- PHP Fatal error: Uncaught Error: Call to a member function getFrameFilters() on null in vendor/filp/whoops/src/Whoops/Handler/PlainTextHandler.php:285 HOT 2
- Whoops \ Exception \ ErrorException (E_WARNING) Undefined variable $configuration
- PrettyPageHandler to html not working HOT 1
- Links in frame comments not legible (WCAG AA)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whoops.