firephp/firephp-core — Issue #4: booleans values apears as string '', or as string '1'. Null is ''.
Author: cadorn
Created: 2012-01-05 22:45:55+00:00
State: open

See: http://firephp.842658.n2.nabble.com/encodeObject-function-td6902405.html

I tried to guess why the encodeObject() function test if $Object is_ressource, is_object, is_array, and if it isn't any of these, then encodes as utf8. With this logic, booleans values apears as string '', or as string '1'. Null is ''. For a better representation I added the following lines:

} else if (is_bool($Object)) {
return $Object;
} else if (is_null($Object)) {
return 'NULL';
} else if (is_numeric($Object)) {
return $Object;

and booleans values are returned as true or false, null variables are returned as null, and numeric variables are returned as numbers.