diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-08-26 14:55:34 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-08-26 14:55:34 +0200 |
| commit | fc4a6cda4bbe7cae32fd6fa5cefe8155122a2dba (patch) | |
| tree | 9017e97ee10d20a16db75b95817edb089f655b40 /ext/com_dotnet/tests | |
| parent | 1b2ec73c1d9175769c3ad4dd40825546851287bc (diff) | |
| parent | 1ff981d7a6b258322e9cea17e8c5418d73ef946c (diff) | |
| download | php-git-fc4a6cda4bbe7cae32fd6fa5cefe8155122a2dba.tar.gz | |
Merge branch 'PHP-7.4' into master
* PHP-7.4:
Fix #64130: COM obj parameters passed by reference are not updated
Diffstat (limited to 'ext/com_dotnet/tests')
| -rw-r--r-- | ext/com_dotnet/tests/bug64130.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/com_dotnet/tests/bug64130.phpt b/ext/com_dotnet/tests/bug64130.phpt new file mode 100644 index 0000000000..0f8e083295 --- /dev/null +++ b/ext/com_dotnet/tests/bug64130.phpt @@ -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) |
