summaryrefslogtreecommitdiff
path: root/lib/php
diff options
context:
space:
mode:
authorHåkon H. Hitland <haakon@likedan.net>2016-11-17 19:37:37 +0100
committerJens Geyer <jensg@apache.org>2016-11-17 21:36:06 +0100
commit2a89bd94ac4ba8c645cad1e0c01606fdac6dc30b (patch)
treeef430da80a5eb95d9108badedd11f447891e56cc /lib/php
parentb7a213c818ec87b703913d8163363554d15f5f99 (diff)
downloadthrift-2a89bd94ac4ba8c645cad1e0c01606fdac6dc30b.tar.gz
THRIFT-3977 PHP extension creates undefined values when deserializing sets
Client: PHP Patch: Håkon H. Hitland <haakon@likedan.net> This closes #1133
Diffstat (limited to 'lib/php')
-rw-r--r--lib/php/src/ext/thrift_protocol/php_thrift_protocol7.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/php/src/ext/thrift_protocol/php_thrift_protocol7.cpp b/lib/php/src/ext/thrift_protocol/php_thrift_protocol7.cpp
index d5a2eafc2..59fa30a74 100644
--- a/lib/php/src/ext/thrift_protocol/php_thrift_protocol7.cpp
+++ b/lib/php/src/ext/thrift_protocol/php_thrift_protocol7.cpp
@@ -626,7 +626,7 @@ void binary_deserialize(int8_t thrift_typeID, PHPInputTransport& transport, zval
for (uint32_t s = 0; s < size; ++s) {
zval key, value;
- ZVAL_UNDEF(&value);
+ ZVAL_TRUE(&value);
binary_deserialize(type, transport, &key, elemspec);