You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
and booleans values are returned as true or false, null variables are returned as null, and numeric variables are returned as numbers.
The text was updated successfully, but these errors were encountered: