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
The error I'm getting: can not consume type: r:1;}}
The serialized string I used comes from PHP. Vice versa it doesn't work as well - crashes because of endless recursion.
P.S. PHP code I used:
<?php
class A {
public $id;
public $b;
}
class B {
public $id;
public $a;
}
$a = new A();
$b = new B();
$a->id = "1";
$a->b = $b;
$b->a = $a;
$b->id = "2";
var_dump(serialize($a));
var_dump(serialize($b));
?>
The text was updated successfully, but these errors were encountered:
This code fails:
The error I'm getting:
can not consume type: r:1;}}
The serialized string I used comes from PHP. Vice versa it doesn't work as well - crashes because of endless recursion.
P.S. PHP code I used:
The text was updated successfully, but these errors were encountered: