aboutsummaryrefslogtreecommitdiff
path: root/php/tests
diff options
context:
space:
mode:
authorBo Yang <teboring@google.com>2017-12-04 12:32:10 -0800
committerBo Yang <teboring@google.com>2017-12-04 12:32:10 -0800
commitb140cb3145f697a025d7b81b53a190d1e89b17dc (patch)
tree9af5d19c73692f7f926851490fc93484d7b41618 /php/tests
parent1acacf46ccd386de8ee660335b4b1a8dffb2967d (diff)
downloadprotobuf-b140cb3145f697a025d7b81b53a190d1e89b17dc.tar.gz
protobuf-b140cb3145f697a025d7b81b53a190d1e89b17dc.tar.bz2
protobuf-b140cb3145f697a025d7b81b53a190d1e89b17dc.zip
Fix memory leak when creating map field via array.
Diffstat (limited to 'php/tests')
-rw-r--r--php/tests/memory_leak_test.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/php/tests/memory_leak_test.php b/php/tests/memory_leak_test.php
index fa272b56..772b466f 100644
--- a/php/tests/memory_leak_test.php
+++ b/php/tests/memory_leak_test.php
@@ -110,6 +110,11 @@ $str_arr = array();
$m = new TestMessage();
$m->setRepeatedString($str_arr);
+// Test create map field via array.
+$str_arr = array();
+$m = new TestMessage();
+$m->setMapStringString($str_arr);
+
# $from = new TestMessage();
# $to = new TestMessage();
# TestUtil::setTestMessage($from);