mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
`ITypeInfo_GetIDsOfNames()` is supposed to fail with `E_NOTIMPL` for out-of-process servers, thus we should not remove the already available typeinfo of the object in this case. We also properly free the `byref_vals`.
28 lines
605 B
PHP
28 lines
605 B
PHP
--TEST--
|
|
Bug #64130 (COM obj parameters passed by reference are not updated)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('com_dotnet')) die('skip com_dotnet extension not available');
|
|
if (PHP_INT_SIZE != 4) die('skip for 32bit platforms only');
|
|
try {
|
|
$ie = new com('InternetExplorer.Application');
|
|
} catch (com_exception $ex) {
|
|
die("skip {$ex->getMessage()}");
|
|
}
|
|
$ie->quit();
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$ie = new com('InternetExplorer.Application');
|
|
$x = 0;
|
|
$y = 0;
|
|
try {
|
|
$ie->clientToWindow($x, $y);
|
|
} catch (com_exception $ex) {}
|
|
var_dump($x > 0, $y > 0);
|
|
$ie->quit();
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|