summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-02-23 23:35:33 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-02-23 23:35:33 +0100
commit6c7306f45df6c558ec55a2d12e343a78a0ceee53 (patch)
tree37862fe113c9f1d4419141a7c098425e3344444f /ext/com_dotnet/tests
parent736b1ab200d695bf1988bc7690e3e86879db4463 (diff)
parent09e7c86779b281c3d1fbff5954fbb9e0b052cf33 (diff)
downloadphp-git-6c7306f45df6c558ec55a2d12e343a78a0ceee53.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79299: com_print_typeinfo prints duplicate variables
Diffstat (limited to 'ext/com_dotnet/tests')
-rw-r--r--ext/com_dotnet/tests/bug79299.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/com_dotnet/tests/bug79299.phpt b/ext/com_dotnet/tests/bug79299.phpt
new file mode 100644
index 0000000000..99c1a99742
--- /dev/null
+++ b/ext/com_dotnet/tests/bug79299.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Bug #79299 (com_print_typeinfo prints duplicate variables)
+--SKIPIF--
+<?php
+if (!extension_loaded('com_dotnet')) die('skip com_dotnet extension not available');
+?>
+--FILE--
+<?php
+$dict = new COM("Scripting.Dictionary");
+ob_start();
+com_print_typeinfo($dict);
+$typeinfo = ob_get_clean();
+preg_match_all('/\/\* DISPID=9 \*\//', $typeinfo, $matches);
+var_dump($matches[0]);
+?>
+--EXPECT--
+array(1) {
+ [0]=>
+ string(14) "/* DISPID=9 */"
+} \ No newline at end of file