Commit 574ba5b5774 for php
commit 574ba5b577470db9e0cc906a5400a2dd2547d029
Author: Gina Peter Banyard <girgias@php.net>
Date: Mon Oct 12 15:52:04 2026 +0100
Zend: remove ZEND_LOG_XOR
It is unused
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS
index 2f6ea7d9ea8..50e83966e37 100644
--- a/UPGRADING.INTERNALS
+++ b/UPGRADING.INTERNALS
@@ -14,6 +14,7 @@ PHP 8.7 INTERNALS UPGRADE NOTES
1. Internal API changes
========================
+- Removed the ZEND_LOG_XOR() macro.
- Removed zend_execute_scripts(). Manually call zend_execute_script() in a loop
instead.
- Removed ZEND_STATIC_ASSERT(). Use C11 static_assert() directly instead.
diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h
index a3028efe172..bd4597784ad 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -556,7 +556,6 @@ extern "C++" {
#define ZEND_NORMALIZE_BOOL(n) \
((n) ? (((n)<0) ? -1 : 1) : 0)
#define ZEND_TRUTH(x) ((x) ? 1 : 0)
-#define ZEND_LOG_XOR(a, b) (ZEND_TRUTH(a) ^ ZEND_TRUTH(b))
/**
* Do a three-way comparison of two integers and returns -1, 0 or 1