-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.5] Added workaround for dd function correct output in the Chrome's network preview window #22581
Conversation
@@ -553,6 +553,8 @@ function data_set(&$target, $key, $value, $overwrite = true) | |||
*/ | |||
function dd(...$args) | |||
{ | |||
http_response_code(500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels wrong to have it here, because you may very well use dd
in non-HTTP context too. Think about background jobs, Console apps, etc.
However, it may be very well this does not negatively affect anything in non-HTTP environment. It certainly doesn't throw a warning, even when in CLI mode (I just tested), so I'm ~0
on this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://php.net/manual/en/function.http-response-code.php
I assume the call is just being ignored for non-HTTP contexts.
…rue (#22812) * tag v5.5.29 release notes * Fix Collection dd() in browser preview window (#22803) See #22581 * [5.5] Allow only to accept collection of keys (#22804) * Modify only to accept collection of keys * Fix missing parentethes * Allow set cookie secure option when session secure default is true * Add tests case
…rue (#22812) * tag v5.5.29 release notes * Fix Collection dd() in browser preview window (#22803) See laravel/framework#22581 * [5.5] Allow only to accept collection of keys (#22804) * Modify only to accept collection of keys * Fix missing parentethes * Allow set cookie secure option when session secure default is true * Add tests case
…rue (#22812) * tag v5.5.29 release notes * Fix Collection dd() in browser preview window (#22803) See laravel/framework#22581 * [5.5] Allow only to accept collection of keys (#22804) * Modify only to accept collection of keys * Fix missing parentethes * Allow set cookie secure option when session secure default is true * Add tests case
…rue (#22812) * tag v5.5.29 release notes * Fix Collection dd() in browser preview window (#22803) See laravel/framework#22581 * [5.5] Allow only to accept collection of keys (#22804) * Modify only to accept collection of keys * Fix missing parentethes * Allow set cookie secure option when session secure default is true * Add tests case
…rue (#22812) * tag v5.5.29 release notes * Fix Collection dd() in browser preview window (#22803) See laravel/framework#22581 * [5.5] Allow only to accept collection of keys (#22804) * Modify only to accept collection of keys * Fix missing parentethes * Allow set cookie secure option when session secure default is true * Add tests case
I still have this problem. It can't be displayed properly. |
@Firefly-12 it seems Google broke this again in Chrome 72. I would suggest to downgrade to Chrome 71 or wait for Chrome 73 (https://bugs.chromium.org/p/chromium/issues/detail?id=930061 issue details). |
@linaspasv Looks like there aren't too many options. Thank you. |
Since Chrome 62.0 version the render of
dd
function output in the network preview window is not being displayed correctly anymore.Before the change:
After the change: