mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Fix PDO_Firebird numeric to string conversion on Windows
Commit aaa1f90[1] dropped support for the `snprinf()` `I` modifier, so we use the standard `ll` modifier which is suitable for 32bit and 64bit Windows. We also replace the deprecated `I64` suffix[2] with the `LL` suffix. This fixes ext/pdo_firebird/tests/bug_64037.phpt. [1] <http://git.php.net/?p=php-src.git;a=commit;h=aaa1f90e3f90c24098fa55a7b868fdca0b89ee25> [2] <https://docs.microsoft.com/en-us/cpp/cpp/numeric-boolean-and-pointer-literals-cpp?view=vs-2019#integer-literals>
This commit is contained in:
parent
b6e70e14bd
commit
c9639cffdb
1 changed files with 2 additions and 7 deletions
|
@ -37,13 +37,8 @@
|
|||
# define LL_MASK "l"
|
||||
# define LL_LIT(lit) lit ## L
|
||||
#else
|
||||
# ifdef PHP_WIN32
|
||||
# define LL_MASK "I64"
|
||||
# define LL_LIT(lit) lit ## I64
|
||||
# else
|
||||
# define LL_MASK "ll"
|
||||
# define LL_LIT(lit) lit ## LL
|
||||
# endif
|
||||
# define LL_MASK "ll"
|
||||
# define LL_LIT(lit) lit ## LL
|
||||
#endif
|
||||
|
||||
/* Firebird API has a couple of missing const decls in its API */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue