thrift/test/php
Håkon Hitland e66b8fcde3 THRIFT-3984 PHP7 extension causes segfault
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
2017-02-23 11:43:45 -05:00
..
Makefile.am THRIFT-3046: Allow PSR4 class loading for generated classes (PHP) 2016-09-03 15:58:37 +09:00
TestClient.php THRIFT-3984 PHP7 extension causes segfault 2017-02-23 11:43:45 -05:00
TestInline.php THRIFT-387. Add license headers to a bunch of files 2009-03-30 21:35:00 +00:00
TestPsr4.php THRIFT-3046: Allow PSR4 class loading for generated classes (PHP) 2016-09-03 15:58:37 +09:00