Annotation of embedaddon/php/ext/com_dotnet/tests/bug49192.phpt, revision 1.1.1.2
1.1 misho 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"; ?>
1.1.1.2 ! misho 6: --XFAIL--
! 7: 1
1.1 misho 8: --FILE--
9: <?php
10:
1.1.1.2 ! misho 11: // this test fails to load ADO
! 12: //
! 13: // a change in windows longhorn x64(affecting vista, 7, 8, 2008, 2008r2) broke ADO.
! 14: //
! 15: // there is a fix available, but user has to install it.
! 16: // given that ADO was deprecated a long time ago in favor of newer APIs,
! 17: // I don't think its worth the trouble of making the user install the fix to
! 18: // get an accurate test run. its better to just not run the test or expect it to fail.
! 19: //
! 20: // see: http://support.microsoft.com/kb/2517589
! 21: // see: http://www.infoq.com/news/2011/10/ADO-Win7
! 22:
1.1 misho 23: $dbConnection = new Com('ADODB.Connection');
24: var_dump(gc_collect_cycles());
25: ?>
26: --EXPECT--
27: int(0)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>