Commit 8db886e419a for php

commit 8db886e419a6aba1903ec97754b0548051b55f9c
Author: Gina Peter Banyard <girgias@php.net>
Date:   Mon Oct 12 15:52:37 2026 +0100

    Zend: remove ZEND_TRUTH

    It is unused

diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS
index 50e83966e37..4c5d74b49e9 100644
--- a/UPGRADING.INTERNALS
+++ b/UPGRADING.INTERNALS
@@ -15,6 +15,7 @@ PHP 8.7 INTERNALS UPGRADE NOTES
 ========================

 - Removed the ZEND_LOG_XOR() macro.
+- Removed the ZEND_TRUTH() 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 bd4597784ad..4906c2947cc 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -555,7 +555,6 @@ extern "C++" {
 #define ZEND_STRS(str)		(str), (sizeof(str))
 #define ZEND_NORMALIZE_BOOL(n)			\
 	((n) ? (((n)<0) ? -1 : 1) : 0)
-#define ZEND_TRUTH(x)		((x) ? 1 : 0)

 /**
  * Do a three-way comparison of two integers and returns -1, 0 or 1