Skip to content

Commit 28c0a9d

Browse files
committed
Disable preserve_none under ASAN due to bugs
See: - llvm/llvm-project#190001 - llvm/llvm-project#95928
1 parent 55c2dbb commit 28c0a9d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Zend/Zend.m4

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,11 @@ dnl
475475
AC_DEFUN([ZEND_CHECK_PRESERVE_NONE], [dnl
476476
AC_CACHE_CHECK([for preserve_none calling convention],
477477
[php_cv_preserve_none],
478-
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
478+
[dnl preserve_none crashes Clang with AddressSanitizer due to an LLVM bug:
479+
dnl https://github.com/llvm/llvm-project/issues/95928
480+
AS_IF([test "$PHP_ADDRESS_SANITIZER" = "yes"],
481+
[php_cv_preserve_none=no],
482+
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
479483
#include <stdio.h>
480484
#include <stdint.h>
481485
@@ -566,7 +570,7 @@ int main(void) {
566570
}]])],
567571
[php_cv_preserve_none=yes],
568572
[php_cv_preserve_none=no],
569-
[php_cv_preserve_none=no])
573+
[php_cv_preserve_none=no])])
570574
])
571575
AS_VAR_IF([php_cv_preserve_none], [yes], [
572576
AC_DEFINE([HAVE_PRESERVE_NONE], [1],

0 commit comments

Comments
 (0)