symfony/symfony — pull request #12061 by nicolas-grekas (2014-09-27 07:09:45+00:00)
Title: [Debug] expose object_handle

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -

This is a small enhancement to the symfony debug C extension that allows fetching an object's handle.
This is the `#number` as displayed by var_dump():
```
var_dump((object) array());
class stdClass#1 (0) {
}
```

This is required for VarDumper to be able to expose objects' handles and thus have more precise dumps.
It will allow inspecting "same" relationships between two *different* dumps.