barbushin / php-console

Handle PHP errors, dump variables, execute PHP code remotely in Google Chrome
https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef
MIT License
1.34k stars 283 forks source link

Dumper should not modify target variables #139

Open Chi-teck opened 7 years ago

Chi-teck commented 7 years ago

Under some conditions dumper converts referenced objects to arrays.

$foo = new \stdClass();
$var['foo'] = &$foo;
\PhpConsole\Handler::getInstance()->debug($var);

echo gettype($foo); // array

See: https://www.drupal.org/node/2752825