mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
e66b8fcde3
The PHP 7 extension can sometimes free strings it does not own, when serializing string map keys, or the name of called methods. The latter case was somewhat migitated since the double-free has no effect on interned strings. Using ZVAL_STR_COPY instead of ZVAL_STR will increment the reference count, making the following destructor call correct. Fix memory leak in PHP 7 Fix memory leak when deserializing maps or sets. zend_hash_update will add its own reference to the key, so we need to destruct the key zval to not leak. We don't need to destruct the value, the hash table will take ownership of it. This closes #1152 |
||
---|---|---|
.. | ||
Makefile.am | ||
TestClient.php | ||
TestInline.php | ||
TestPsr4.php |