]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.4'
authorDmitry Stogov <dmitry@zend.com>
Thu, 12 Mar 2020 08:45:05 +0000 (11:45 +0300)
committerDmitry Stogov <dmitry@zend.com>
Thu, 12 Mar 2020 08:45:05 +0000 (11:45 +0300)
* PHP-7.4:
  Export FFI::__BIGGEST_ALIGNMENT__

1  2 
ext/ffi/ffi.c
ext/ffi/tests/022.phpt

diff --cc ext/ffi/ffi.c
Simple merge
index 9e5bb915e1a417197a424474fad4cef859da182c,3eb28fb21483675ebd1cb814457589f114042828..44ddaeebd29e3cf8ca1f2b8d070c67092b227ca8
@@@ -61,8 -61,8 +61,8 @@@ test_size(32, "struct {char a; uint32_
  test_align(16, "struct {char a; uint32_t b __attribute__((aligned(16)));}");
  
  if (substr(PHP_OS, 0, 3) != 'WIN') {
-     test_size(32, "struct  {char a; uint32_t b __attribute__((aligned));}");
-     test_align(16, "struct  {char a; uint32_t b __attribute__((aligned));}");
 -      test_size(FFI::__BIGGEST_ALIGNMENT__ * 2, "struct  {char a; uint32_t b __attribute__((aligned));}");
 -      test_align(FFI::__BIGGEST_ALIGNMENT__, "struct  {char a; uint32_t b __attribute__((aligned));}");
++    test_size(FFI::__BIGGEST_ALIGNMENT__ * 2, "struct  {char a; uint32_t b __attribute__((aligned));}");
++    test_align(FFI::__BIGGEST_ALIGNMENT__, "struct  {char a; uint32_t b __attribute__((aligned));}");
  }
  
  test_size(16, "struct  __declspec(align(16)) {char a; uint32_t b;}");