Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Zend/Zend.m4
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,11 @@ dnl
AC_DEFUN([ZEND_CHECK_PRESERVE_NONE], [dnl
AC_CACHE_CHECK([for preserve_none calling convention],
[php_cv_preserve_none],
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
[dnl preserve_none crashes Clang with AddressSanitizer due to an LLVM bug:
dnl https://github.com/llvm/llvm-project/issues/95928
AS_IF([test "$PHP_ADDRESS_SANITIZER" = "yes"],
[php_cv_preserve_none=no],
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h>
#include <stdint.h>

Expand Down Expand Up @@ -566,7 +570,7 @@ int main(void) {
}]])],
[php_cv_preserve_none=yes],
[php_cv_preserve_none=no],
[php_cv_preserve_none=no])
[php_cv_preserve_none=no])])
])
AS_VAR_IF([php_cv_preserve_none], [yes], [
AC_DEFINE([HAVE_PRESERVE_NONE], [1],
Expand Down
Loading