-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #64130: COM obj parameters passed by reference are not updated
`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`.
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--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) |