bug79299.phpt 365 B

123456789101112131415161718
  1. --TEST--
  2. Bug #79299 (com_print_typeinfo prints duplicate variables)
  3. --EXTENSIONS--
  4. com_dotnet
  5. --FILE--
  6. <?php
  7. $dict = new COM("Scripting.Dictionary");
  8. ob_start();
  9. com_print_typeinfo($dict);
  10. $typeinfo = ob_get_clean();
  11. preg_match_all('/\/\* DISPID=9 \*\//', $typeinfo, $matches);
  12. var_dump($matches[0]);
  13. ?>
  14. --EXPECT--
  15. array(1) {
  16. [0]=>
  17. string(14) "/* DISPID=9 */"
  18. }