[php-src] master: Zend: remove ZEND_TRUTH

From: Date: Mon, 12 Oct 2026 22:37:55 +0000
Subject: [php-src] master: Zend: remove ZEND_TRUTH
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142225@lists.php.net to get a copy of this message
Author: Gina Peter Banyard (Girgias) Date: 2026-10-12T23:37:50+01:00 Commit: https://github.com/php/php-src/commit/8db886e419a6aba1903ec97754b0548051b55f9c Raw diff: https://github.com/php/php-src/commit/8db886e419a6aba1903ec97754b0548051b55f9c.diff Zend: remove ZEND_TRUTH It is unused Changed paths: M UPGRADING.INTERNALS M Zend/zend_portability.h Diff: diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index 50e83966e378..4c5d74b49e9c 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 bd4597784ade..4906c2947cc5 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

« previous php.cvs (#142225) next »