com php-src: Fixed ext/ffi/tests/044.phpt failure on 32-bit Linux: ext/ffi/ffi.c

From: Date: Tue, 09 Apr 2019 13:12:13 +0000
Subject: com php-src: Fixed ext/ffi/tests/044.phpt failure on 32-bit Linux: ext/ffi/ffi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105598@lists.php.net to get a copy of this message
Commit: a5e86d82643e1fc718c356f9a6dc4a2daa31e7be Author: Dmitry Stogov <dmitry@zend.com> Tue, 9 Apr 2019 16:12:13 +0300 Parents: ec5d4c79d28fa9e12a213e24b491c5e21673e5d7 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a5e86d82643e1fc718c356f9a6dc4a2daa31e7be Log: Fixed ext/ffi/tests/044.phpt failure on 32-bit Linux Changed paths: M ext/ffi/ffi.c Diff: diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index e124995..c47128e 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -5004,18 +5004,12 @@ static void zend_ffi_finalize_type(zend_ffi_dcl *dcl) /* {{{ */ dcl->type = (zend_ffi_type*)&zend_ffi_type_uint64; } break; -#ifdef _WIN32 - case ZEND_FFI_DCL_LONG_LONG: -#endif case ZEND_FFI_DCL_LONG_LONG|ZEND_FFI_DCL_LONG: case ZEND_FFI_DCL_LONG_LONG|ZEND_FFI_DCL_LONG|ZEND_FFI_DCL_SIGNED: case ZEND_FFI_DCL_LONG_LONG|ZEND_FFI_DCL_LONG|ZEND_FFI_DCL_INT: case ZEND_FFI_DCL_LONG_LONG|ZEND_FFI_DCL_LONG|ZEND_FFI_DCL_SIGNED|ZEND_FFI_DCL_INT: dcl->type = (zend_ffi_type*)&zend_ffi_type_sint64; break; -#ifdef _WIN32 - case ZEND_FFI_DCL_LONG_LONG|ZEND_FFI_DCL_UNSIGNED: -#endif case ZEND_FFI_DCL_LONG_LONG|ZEND_FFI_DCL_LONG|ZEND_FFI_DCL_UNSIGNED: case ZEND_FFI_DCL_LONG_LONG|ZEND_FFI_DCL_LONG|ZEND_FFI_DCL_UNSIGNED|ZEND_FFI_DCL_INT: dcl->type = (zend_ffi_type*)&zend_ffi_type_uint64; @@ -6144,7 +6138,7 @@ void zend_ffi_add_attribute_value(zend_ffi_dcl *dcl, const char *name, size_t na if (sizeof(long) == 8) { dcl->flags |= ZEND_FFI_DCL_LONG; } else { - dcl->flags |= ZEND_FFI_DCL_LONG_LONG; + dcl->flags |= ZEND_FFI_DCL_LONG|ZEND_FFI_DCL_LONG_LONG; } break; }

« previous php.cvs (#105598) next »