summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-02-07 18:04:14 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-02-07 18:04:14 +0100
commitb9738f5802d15ba5d593ae09a6e63e49f9d7880f (patch)
tree587885d6aa30d4d9ab0daf202cc0149bc2dfe033 /ext/pcre/php_pcre.c
parent5e2ea00b1539d6003548f7698ece1f737c14fb51 (diff)
downloadphp-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