We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c2dbb commit 28c0a9dCopy full SHA for 28c0a9d
1 file changed
Zend/Zend.m4
@@ -475,7 +475,11 @@ dnl
475
AC_DEFUN([ZEND_CHECK_PRESERVE_NONE], [dnl
476
AC_CACHE_CHECK([for preserve_none calling convention],
477
[php_cv_preserve_none],
478
- [AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ [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([[
483
#include <stdio.h>
484
#include <stdint.h>
485
@@ -566,7 +570,7 @@ int main(void) {
566
570
}]])],
567
571
[php_cv_preserve_none=yes],
568
572
[php_cv_preserve_none=no],
569
- [php_cv_preserve_none=no])
573
+ [php_cv_preserve_none=no])])
574
])
575
AS_VAR_IF([php_cv_preserve_none], [yes], [
576
AC_DEFINE([HAVE_PRESERVE_NONE], [1],
0 commit comments