Skip to content

Commit 8db886e

Browse files
committed
Zend: remove ZEND_TRUTH
It is unused
1 parent 574ba5b commit 8db886e

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎UPGRADING.INTERNALS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ PHP 8.7 INTERNALS UPGRADE NOTES
1515
========================
1616

1717
- Removed the ZEND_LOG_XOR() macro.
18+
- Removed the ZEND_TRUTH() macro.
1819
- Removed zend_execute_scripts(). Manually call zend_execute_script() in a loop
1920
instead.
2021
- Removed ZEND_STATIC_ASSERT(). Use C11 static_assert() directly instead.

‎Zend/zend_portability.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,6 @@ extern "C++" {
555555
#define ZEND_STRS(str) (str), (sizeof(str))
556556
#define ZEND_NORMALIZE_BOOL(n) \
557557
((n) ? (((n)<0) ? -1 : 1) : 0)
558-
#define ZEND_TRUTH(x) ((x) ? 1 : 0)
559558

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

0 commit comments

Comments
 (0)