diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-02-07 18:04:14 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-02-07 18:04:14 +0100 |
commit | b9738f5802d15ba5d593ae09a6e63e49f9d7880f (patch) | |
tree | 587885d6aa30d4d9ab0daf202cc0149bc2dfe033 /ext/pcre/php_pcre.c | |
parent | 5e2ea00b1539d6003548f7698ece1f737c14fb51 (diff) | |
download | php-git-b9738f5802d15ba5d593ae09a6e63e49f9d7880f.tar.gz |
Fix #79242: COM error constants don't match com_exception codes
Because a `HRESULT` is a `LONG`[1], no special treatment is required on
x86 platforms to get appropriate values. On x64 platforms we prefer
positive values, what we could accomplish by casting the `HRESULT`
value to `ULONG` and then to `zend_long`, but since the current
behavior is correct and the performance improvement is negligible, we
defer that to master.
[1] <https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hresult>
Diffstat (limited to 'ext/pcre/php_pcre.c')
0 files changed, 0 insertions, 0 deletions