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
{{ message }}
This repository was archived by the owner on Sep 10, 2022. It is now read-only.
If I serialize a class with private or protected variables \u0000CLASNAME\u0000 or in case of protected \u0000*\u0000 is prepended to the variable name.
json encoding this string and then decoding it on GAE php55 fails on \u0000.
example code:
class A {
public $pub = 10;
protected $priv = 20;
}
$a = new A();
$serialized = serialize($a);
echo "\nSERIALIZED: ".$serialized;
echo "\nJSON: ". ($json = json_encode($serialized));
echo "\nDECODE".print_r(json_decode($json),1);
echo "\n";