Re: [PHP-DEV] reused hash tables in large data structures in PHP7

2016-05-16 Thread Xinchen Hui
Hey: On Tue, May 17, 2016 at 6:00 AM, Adam Baratz wrote: > Hi, > > I've encountered a hard-to-consistently-reproduce issue with HashTable > zvals. I have code that will generate big nested \stdClass structures for > JSON encoding. It does so using classes that have methods that generate > those

[PHP-DEV] reused hash tables in large data structures in PHP7

2016-05-16 Thread Adam Baratz
Hi, I've encountered a hard-to-consistently-reproduce issue with HashTable zvals. I have code that will generate big nested \stdClass structures for JSON encoding. It does so using classes that have methods that generate those fields. For example, you could have a class like this: class Block {