xref: /PHP-7.3/ext/com_dotnet/tests/bug49192.phpt (revision 782352c5)
1--TEST--
2Bug #49192 (PHP crashes when GC invoked on COM object)
3--SKIPIF--
4<?php
5if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
6--XFAIL--
71
8--FILE--
9<?php
10
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
23$dbConnection = new Com('ADODB.Connection');
24var_dump(gc_collect_cycles());
25?>
26--EXPECT--
27int(0)
28