dump breaks output

2 messages Options
Embed this post
Permalink
FoTo50 () dump breaks output
Reply Threaded More More options
Print post
Permalink
Hi,

I'm not sure if this is a bug or this behaviour is wanted like this (witch I doubt very much), but I thought I post it here and save time in case someone else got the same problem:

When using the "normal" dump, everything works fine:

$fb->dump("variablename",$variable); // <-- this works fine


Changing key and variable by mistake or missing the key:

$fb->dump($variable,"variablename"); // <-- output can break
$fb->dump($variable); // <-- output can break


This bug occurs when the first parameter (Key) has CRLF line breaks (win format) inside, CR line breaks (linux format) are totally ignored.


BTW: an easy way to dump simple variables INCLUDING their line breaks (e.g. sql queries are unreadable without them) somewhere in the konsole output would be a nice feature. Currently I need to push a $query into an $array[] to be able to view it with line breaks in the variable viewer.

best greets
FoTo50

PS.: according to the header, I'm using following User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 FirePHP/0.3
PHP-Version is 5.2.9
Christoph Dorn () Re: dump breaks output
Reply Threaded More More options
Print post
Permalink
FoTo50 wrote:
Changing key and variable by mistake or missing the key:

$fb->dump($variable,"variablename"); // <-- output can break
$fb->dump($variable); // <-- output can break


This bug occurs when the first parameter (Key) has CRLF line breaks (win format) inside, CR line breaks (linux format) are totally ignored.
Added issue: http://code.google.com/p/firephp/issues/detail?id=117

FoTo50 wrote:
BTW: an easy way to dump simple variables INCLUDING their line breaks (e.g. sql queries are unreadable without them) somewhere in the konsole output would be a nice feature. Currently I need to push a $query into an $array[] to be able to view it with line breaks in the variable viewer.
See: http://code.google.com/p/firephp/issues/detail?id=50 and http://code.google.com/p/firephp/issues/detail?id=59