mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Add cross-compiling 3rd argument to AC_RUN_IFELSE
This commit is contained in:
2
NEWS
2
NEWS
@@ -6,6 +6,8 @@ PHP NEWS
|
||||
. Fixed bug GH-12953 (false positive SSA integrity verification failed when
|
||||
loading composer classmaps with more than 11k elements). (nielsdos)
|
||||
. Fixed bug GH-12999 (zend_strnlen build when strnlen is unsupported). (rainerjung)
|
||||
. Fixed bug GH-12966 (missing cross-compiling 3rd argument so Autoconf doesn't
|
||||
emit warnings). (Peter Kokot)
|
||||
|
||||
- Cli:
|
||||
. Fix incorrect timeout in built-in web server when using router script and
|
||||
|
||||
@@ -1625,15 +1625,16 @@ if test "$PHP_UNDEFINED_SANITIZER" = "yes"; then
|
||||
dnl cast to void*. In that case, set -fno-sanitize=function.
|
||||
OLD_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -fno-sanitize-recover=undefined"
|
||||
AC_CACHE_CHECK([whether to add -fno-sanitize=function],[php_cv_ubsan_no_function],[
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
void foo(char *string) {}
|
||||
int main(void) {
|
||||
void (*f)(void *) = (void (*)(void *))foo;
|
||||
f("foo");
|
||||
}
|
||||
]])],,[ubsan_needs_no_function=yes],)
|
||||
]])],[php_cv_ubsan_no_function=no],[php_cv_ubsan_no_function=yes],[php_cv_ubsan_no_function=no])])
|
||||
CFLAGS="$OLD_CFLAGS"
|
||||
if test "$ubsan_needs_no_function" = yes; then
|
||||
if test "$php_cv_ubsan_no_function" = yes; then
|
||||
CFLAGS="$CFLAGS -fno-sanitize=function"
|
||||
CXXFLAGS="$CFLAGS -fno-sanitize=function"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user