bug79299.phpt 444 B

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