From 7d90e474b6088117616ac4e5a98e457eda1c374e Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Wed, 25 Sep 2024 15:44:43 +0200 Subject: [PATCH] Upgrade master to Ubuntu 24.04 --- .github/actions/apt-x32/action.yml | 2 -- .github/actions/configure-x32/action.yml | 3 +-- .github/workflows/push.yml | 6 +++--- .github/workflows/root.yml | 5 ++++- Zend/zend_portability.h | 7 +++++++ ext/curl/tests/bug77535.phpt | 2 +- ext/curl/tests/curl_pushfunction_trampoline.phpt | 2 +- ext/pcntl/tests/pcntl_setns_basic.phpt | 8 ++++++++ ext/pcntl/tests/pcntl_setns_newpid.phpt | 9 ++++++++- ext/pdo_odbc/tests/long_columns.phpt | 6 ++---- ext/standard/basic_functions.c | 1 + 11 files changed, 36 insertions(+), 15 deletions(-) diff --git a/.github/actions/apt-x32/action.yml b/.github/actions/apt-x32/action.yml index 0638881d1e4c2..af1d7918bb28d 100644 --- a/.github/actions/apt-x32/action.yml +++ b/.github/actions/apt-x32/action.yml @@ -33,13 +33,11 @@ runs: libsodium-dev:i386 \ libsqlite3-dev:i386 \ libssl-dev:i386 \ - libtidy-dev:i386 \ libwebp-dev:i386 \ libxml2-dev:i386 \ libxml2-dev:i386 \ libxpm-dev:i386 \ libxslt1-dev:i386 \ - libzip-dev:i386 \ locales \ make \ pkg-config:i386 \ diff --git a/.github/actions/configure-x32/action.yml b/.github/actions/configure-x32/action.yml index c07c49bb2c4f1..de500e02d4991 100644 --- a/.github/actions/configure-x32/action.yml +++ b/.github/actions/configure-x32/action.yml @@ -10,6 +10,7 @@ runs: run: | set -x + export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/i386-linux-gnu/pkgconfig" ./buildconf --force export CFLAGS="-m32 -msse2" export CXXFLAGS="-m32 -msse2" @@ -33,12 +34,10 @@ runs: --with-freetype \ --with-xpm \ --enable-exif \ - --with-zip \ --with-zlib \ --enable-soap \ --enable-xmlreader \ --with-xsl \ - --with-tidy \ --enable-sysvsem \ --enable-sysvshm \ --enable-shmop \ diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 684934c7073ee..6baf80d5f84b0 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -78,7 +78,7 @@ jobs: zts: true asan: true name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}" - runs-on: ubuntu-${{ !matrix.asan && '22' || '24' }}.04 + runs-on: ubuntu-24.04 timeout-minutes: 50 steps: - name: git checkout @@ -142,7 +142,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 50 container: - image: ubuntu:20.04 + image: ubuntu:24.04 env: MYSQL_TEST_HOST: mysql PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test @@ -255,7 +255,7 @@ jobs: BENCHMARKING: name: BENCHMARKING if: github.repository == 'php/php-src' || github.event_name == 'pull_request' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 50 steps: - name: git checkout diff --git a/.github/workflows/root.yml b/.github/workflows/root.yml index f526e9bea30d5..9a2e3db7c6be8 100644 --- a/.github/workflows/root.yml +++ b/.github/workflows/root.yml @@ -52,6 +52,9 @@ jobs: libmysqlclient_with_mysqli: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1) }} run_alpine: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }} run_macos_arm64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }} - ubuntu_version: ${{ ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 3) || matrix.branch.version[0] >= 9) && '22.04' || '20.04' }} + ubuntu_version: ${{ + (((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9) && '24.04') + || ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 3) && '22.04') + || '20.04' }} windows_version: ${{ ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9) && '2022' || '2019' }} secrets: inherit diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index e292d993219ca..9ab46f9b32cfe 100644 --- a/Zend/zend_portability.h +++ b/Zend/zend_portability.h @@ -515,6 +515,13 @@ extern "C++" { # undef HAVE_FUNC_ATTRIBUTE_IFUNC #endif +#if __has_feature(memory_sanitizer) +# include +# define MSAN_UNPOISON(value) __msan_unpoison(&(value), sizeof(value)) +#else +# define MSAN_UNPOISON(value) +#endif + /* Only use ifunc resolvers if we have __builtin_cpu_supports() and __builtin_cpu_init(), * otherwise the use of zend_cpu_supports() may not be safe inside ifunc resolvers. */ #if defined(HAVE_FUNC_ATTRIBUTE_IFUNC) && defined(HAVE_FUNC_ATTRIBUTE_TARGET) && \ diff --git a/ext/curl/tests/bug77535.phpt b/ext/curl/tests/bug77535.phpt index 522818516ae69..600bfef62b9aa 100644 --- a/ext/curl/tests/bug77535.phpt +++ b/ext/curl/tests/bug77535.phpt @@ -2,7 +2,7 @@ Bug #77535 (Invalid callback, h2 server push) --EXTENSIONS-- curl ---XLEAK-- +--XFAIL-- --SKIPIF-- --FILE-- --FILE-- --FILE--