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

[5.5] Added workaround for dd function correct output in the Chrome's network preview window #22581

Merged
merged 2 commits into from
Dec 31, 2017

Conversation

linaspasv
Copy link
Contributor

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:
image

After the change:
image

@linaspasv linaspasv changed the title [5.5] dd render workaround f [5.5] workaround for dd function correct output in the network preview window Dec 31, 2017
@linaspasv linaspasv changed the title [5.5] workaround for dd function correct output in the network preview window [5.5] Added workaround for dd function correct output in the Chrome's network preview window Dec 31, 2017
@@ -553,6 +553,8 @@ function data_set(&$target, $key, $value, $overwrite = true)
*/
function dd(...$args)
{
http_response_code(500);
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@taylorotwell taylorotwell merged commit b14697f into laravel:5.5 Dec 31, 2017
symfony-splitter pushed a commit to illuminate/support that referenced this pull request Jan 15, 2018
taylorotwell pushed a commit that referenced this pull request Jan 16, 2018
…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
symfony-splitter pushed a commit to illuminate/cookie that referenced this pull request Jan 16, 2018
…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
symfony-splitter pushed a commit to illuminate/support that referenced this pull request Jan 16, 2018
…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
taylorotwell pushed a commit to illuminate/cookie that referenced this pull request Sep 17, 2018
…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
taylorotwell pushed a commit to illuminate/support that referenced this pull request Sep 17, 2018
taylorotwell pushed a commit to illuminate/support that referenced this pull request Sep 17, 2018
…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
@SilvaQ
Copy link

SilvaQ commented Mar 6, 2019

I still have this problem. It can't be displayed properly.
info:
google chrome 72.0.3626.121 64bit
Laravel Framework 5.5.45

@linaspasv
Copy link
Contributor Author

@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).

@SilvaQ
Copy link

SilvaQ commented Mar 6, 2019

@linaspasv Looks like there aren't too many options. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants