Issue with serialization, __sleep method and field defined in trait
Open
php5 incompatibility
- Dominant language
- C++
- Stars
- 18.7k
- Forks
- 3.1k
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
Hi, our team faced strange issue with HHVM 3.4.2:
```
fieldOne = 1;
$var->fieldTwo = 2;
var_dump(unserialize(serialize($var))->fieldTwo, $var->fieldTwo);
// expected output
//int(2)
//int(2)
// actual output
//NULL
//int(2)
```
Contributor guide
Assessment
This issue has not been assessed yet.