facebook / facebook/hhvm

Issue with serialization, __sleep method and field defined in trait

Open
#4,610 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.