bug49192.phpt 807 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Bug #49192 (PHP crashes when GC invoked on COM object)
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
  6. --XFAIL--
  7. 1
  8. --FILE--
  9. <?php
  10. // this test fails to load ADO
  11. //
  12. // a change in windows longhorn x64(affecting vista, 7, 8, 2008, 2008r2) broke ADO.
  13. //
  14. // there is a fix available, but user has to install it.
  15. // given that ADO was deprecated a long time ago in favor of newer APIs,
  16. // I don't think its worth the trouble of making the user install the fix to
  17. // get an accurate test run. its better to just not run the test or expect it to fail.
  18. //
  19. // see: http://support.microsoft.com/kb/2517589
  20. // see: http://www.infoq.com/news/2011/10/ADO-Win7
  21. $dbConnection = new Com('ADODB.Connection');
  22. var_dump(gc_collect_cycles());
  23. ?>
  24. --EXPECT--
  25. int(0)