php-src/ext/pdo_firebird
Christoph M. Becker 7512685767
Use built-ins for addition and subtraction on Windows (GH-17472)
For Clang, we just need to define the respective macros, since these
built-ins are available in all supported Clang versions (>= 4.0.0,
currently)[1].

For MSVC (and possibly other compilers) we use the respective APIs of
intsafe.h[2] which are available as of Windows 7/Server 2008 R2.

This avoids the UB due to signed integer overflow that may happen with
our fallback implementations.

We also drop the superfluous SHORT_MAX definition from pdo_firebird.
This shouldn't be defined unconditionally, but since it is apparently
unused, we remove it altogether.

[1] <https://releases.llvm.org/4.0.0/tools/clang/docs/LanguageExtensions.html>
[2] <https://learn.microsoft.com/en-us/windows/win32/api/intsafe/>
2025-01-15 12:58:12 +01:00
..
tests ext/pdo_firebird: Throw ValueError if cursor name is too long (#17173) 2024-12-17 13:15:47 +00:00
config.m4 Cater to raised requirement of fbclient 3.0+ for pdo_firebird (GH-15498) 2024-08-20 16:00:00 +02:00
config.w32 Cater to raised requirement of fbclient 3.0+ for pdo_firebird (GH-15498) 2024-08-20 16:00:00 +02:00
CREDITS
firebird_driver.c Test Firebird in 32-bit Linux CI (#17045) 2024-12-06 17:27:59 +01:00
firebird_statement.c ext/pdo_firebird: Fix label follow by declaration (#17229) 2024-12-21 16:56:53 +05:30
pdo_firebird.c ext/pdo_firebird: Added getApiVersion() and removed from getAttribute (#15004) 2024-07-18 11:17:52 +09:00
pdo_firebird.stub.php ext/pdo_firebird: Added getApiVersion() and removed from getAttribute (#15004) 2024-07-18 11:17:52 +09:00
pdo_firebird_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
pdo_firebird_utils.cpp Fix -Wunused-function warning in ext/pdo_firebird (#15646) 2024-08-30 01:22:52 +02:00
pdo_firebird_utils.h Trim trailing whitespace (#15649) 2024-08-30 01:20:56 +02:00
php_pdo_firebird.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_pdo_firebird_int.h Use built-ins for addition and subtraction on Windows (GH-17472) 2025-01-15 12:58:12 +01:00