[php-src] PHP-8.3: Fix __SANITIZE_ADDRESS__ redeclaration warning
| From: | Ilija Tovilo | Date: | Mon, 29 Apr 2024 14:15:15 +0000 |
| Subject: | [php-src] PHP-8.3: Fix __SANITIZE_ADDRESS__ redeclaration warning | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-128249@lists.php.net to get a copy of this message | ||
Author: Ilija Tovilo (iluuu1994)
Date: 2024-04-29T16:13:49+02:00
Commit: https://github.com/php/php-src/commit/d670e131df262db13800a026e72f7fe6fe62bcd2
Raw diff: https://github.com/php/php-src/commit/d670e131df262db13800a026e72f7fe6fe62bcd2.diff
Fix __SANITIZE_ADDRESS__ redeclaration warning
Changed paths:
M Zend/zend_portability.h
Diff:
diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h
index d59fc6d07c1d..6ca9b7266b6e 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -132,7 +132,7 @@
#if defined(HAVE_LIBDL) && !defined(ZEND_WIN32)
-# if __has_feature(address_sanitizer)
+# if __has_feature(address_sanitizer) && !defined(__SANITIZE_ADDRESS__)
# define __SANITIZE_ADDRESS__
# endif