xref: /PHP-8.0/ext/com_dotnet/tests/bug64130.phpt (revision 5ff15e26)
1--TEST--
2Bug #64130 (COM obj parameters passed by reference are not updated)
3--SKIPIF--
4<?php
5if (!extension_loaded('com_dotnet')) die('skip com_dotnet extension not available');
6if (PHP_INT_SIZE != 4) die('skip for 32bit platforms only');
7try {
8    $ie = new com('InternetExplorer.Application');
9} catch (com_exception $ex) {
10    die("skip {$ex->getMessage()}");
11}
12$ie->quit();
13?>
14--FILE--
15<?php
16$ie = new com('InternetExplorer.Application');
17$x = 0;
18$y = 0;
19try {
20    $ie->clientToWindow($x, $y);
21} catch (com_exception $ex) {}
22var_dump($x > 0, $y > 0);
23$ie->quit();
24?>
25--EXPECT--
26bool(true)
27bool(true)
28