File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 475475AC_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] ,
You can’t perform that action at this time.
0 commit comments