|
Hi,
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.
|