Upgrade master to Ubuntu 24.04 (GH-16704)

This commit is contained in:
Ilija Tovilo 2024-11-07 16:32:45 +01:00 committed by GitHub
parent 40997c2c62
commit fb257ee83c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 36 additions and 15 deletions

View file

@ -33,13 +33,11 @@ runs:
libsodium-dev:i386 \ libsodium-dev:i386 \
libsqlite3-dev:i386 \ libsqlite3-dev:i386 \
libssl-dev:i386 \ libssl-dev:i386 \
libtidy-dev:i386 \
libwebp-dev:i386 \ libwebp-dev:i386 \
libxml2-dev:i386 \ libxml2-dev:i386 \
libxml2-dev:i386 \ libxml2-dev:i386 \
libxpm-dev:i386 \ libxpm-dev:i386 \
libxslt1-dev:i386 \ libxslt1-dev:i386 \
libzip-dev:i386 \
locales \ locales \
make \ make \
pkg-config:i386 \ pkg-config:i386 \

View file

@ -10,6 +10,7 @@ runs:
run: | run: |
set -x set -x
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/i386-linux-gnu/pkgconfig"
./buildconf --force ./buildconf --force
export CFLAGS="-m32 -msse2" export CFLAGS="-m32 -msse2"
export CXXFLAGS="-m32 -msse2" export CXXFLAGS="-m32 -msse2"
@ -33,12 +34,10 @@ runs:
--with-freetype \ --with-freetype \
--with-xpm \ --with-xpm \
--enable-exif \ --enable-exif \
--with-zip \
--with-zlib \ --with-zlib \
--enable-soap \ --enable-soap \
--enable-xmlreader \ --enable-xmlreader \
--with-xsl \ --with-xsl \
--with-tidy \
--enable-sysvsem \ --enable-sysvsem \
--enable-sysvshm \ --enable-sysvshm \
--enable-shmop \ --enable-shmop \

View file

@ -78,7 +78,7 @@ jobs:
zts: true zts: true
asan: true asan: true
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}" 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 timeout-minutes: 50
steps: steps:
- name: git checkout - name: git checkout
@ -142,7 +142,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 50 timeout-minutes: 50
container: container:
image: ubuntu:20.04 image: ubuntu:24.04
env: env:
MYSQL_TEST_HOST: mysql MYSQL_TEST_HOST: mysql
PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test
@ -255,7 +255,7 @@ jobs:
BENCHMARKING: BENCHMARKING:
name: BENCHMARKING name: BENCHMARKING
if: github.repository == 'php/php-src' || github.event_name == 'pull_request' if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
timeout-minutes: 50 timeout-minutes: 50
steps: steps:
- name: git checkout - name: git checkout

View file

@ -52,6 +52,9 @@ jobs:
libmysqlclient_with_mysqli: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1) }} 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_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 }} 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' }} windows_version: ${{ ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9) && '2022' || '2019' }}
secrets: inherit secrets: inherit

View file

@ -515,6 +515,13 @@ extern "C++" {
# undef HAVE_FUNC_ATTRIBUTE_IFUNC # undef HAVE_FUNC_ATTRIBUTE_IFUNC
#endif #endif
#if __has_feature(memory_sanitizer)
# include <sanitizer/msan_interface.h>
# 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(), /* 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. */ * 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) && \ #if defined(HAVE_FUNC_ATTRIBUTE_IFUNC) && defined(HAVE_FUNC_ATTRIBUTE_TARGET) && \

View file

@ -2,7 +2,7 @@
Bug #77535 (Invalid callback, h2 server push) Bug #77535 (Invalid callback, h2 server push)
--EXTENSIONS-- --EXTENSIONS--
curl curl
--XLEAK-- --XFAIL--
--SKIPIF-- --SKIPIF--
<?php <?php
include 'skipif-nocaddy.inc'; include 'skipif-nocaddy.inc';

View file

@ -2,7 +2,7 @@
Test trampoline for curl option CURLMOPT_PUSHFUNCTION Test trampoline for curl option CURLMOPT_PUSHFUNCTION
--EXTENSIONS-- --EXTENSIONS--
curl curl
--XLEAK-- --XFAIL--
--SKIPIF-- --SKIPIF--
<?php <?php
include 'skipif-nocaddy.inc'; include 'skipif-nocaddy.inc';

View file

@ -7,6 +7,14 @@ posix
<?php <?php
if (!function_exists("pcntl_setns")) die("skip pcntl_setns is not available"); if (!function_exists("pcntl_setns")) die("skip pcntl_setns is not available");
if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN'); if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
$pid = pcntl_fork();
if ($pid == -1) die("skip pcntl_fork failed");
if ($pid != 0) {
if (@pcntl_setns($pid, CLONE_NEWPID) === false && pcntl_get_last_error() == PCNTL_EPERM) {
die("skip Insufficient privileges to use pcntl_setns()");
}
}
?> ?>
--FILE-- --FILE--
<?php <?php

View file

@ -6,8 +6,15 @@ posix
--SKIPIF-- --SKIPIF--
<?php <?php
if (!function_exists("pcntl_setns")) die("skip pcntl_setns is not available"); if (!function_exists("pcntl_setns")) die("skip pcntl_setns is not available");
if (posix_getuid() !== 0) die('skip Test needs root user');
if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN'); if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
$pid = pcntl_fork();
if ($pid == -1) die("skip pcntl_fork failed");
if ($pid != 0) {
if (@pcntl_setns($pid, CLONE_NEWPID) === false && pcntl_get_last_error() == PCNTL_EPERM) {
die("skip Insufficient privileges to use pcntl_setns()");
}
}
?> ?>
--FILE-- --FILE--
<?php <?php

View file

@ -4,10 +4,8 @@ PDO ODBC "long" columns
pdo_odbc pdo_odbc
--SKIPIF-- --SKIPIF--
<?php <?php
// make sure there is an ODBC driver and a DSN, or the test will fail require 'ext/pdo/tests/pdo_test.inc';
include 'ext/pdo/tests/pdo_test.inc'; PDOTest::skip();
$config = PDOTest::get_config('ext/pdo_odbc/tests/common.phpt');
if (!isset($config['ENV']['PDOTEST_DSN']) || $config['ENV']['PDOTEST_DSN']===false) print 'skip';
?> ?>
--FILE-- --FILE--
<?php <?php

View file

@ -1182,6 +1182,7 @@ PHP_FUNCTION(time_nanosleep)
RETURN_TRUE; RETURN_TRUE;
} else if (errno == EINTR) { } else if (errno == EINTR) {
array_init(return_value); array_init(return_value);
MSAN_UNPOISON(php_rem);
add_assoc_long_ex(return_value, "seconds", sizeof("seconds")-1, php_rem.tv_sec); add_assoc_long_ex(return_value, "seconds", sizeof("seconds")-1, php_rem.tv_sec);
add_assoc_long_ex(return_value, "nanoseconds", sizeof("nanoseconds")-1, php_rem.tv_nsec); add_assoc_long_ex(return_value, "nanoseconds", sizeof("nanoseconds")-1, php_rem.tv_nsec);
return; return;