From e8d6561efd85a83e45c232363372fa4fc9a5be13 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Fri, 13 Nov 2026 11:20:04 +0000 Subject: [PATCH] Zend: add nullptr definition if compiler doesn't support C23 --- Zend/zend_portability.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index 193a28259f0c..9aab82299278 100644 --- a/Zend/zend_portability.h +++ b/Zend/zend_portability.h @@ -32,6 +32,11 @@ * general definitions */ +#if __STDC_VERSION__ < 202311L +/* The object representation of nullptr is same as that of (void*)0. */ +# define nullptr (void*)0 +#endif + #ifdef ZEND_WIN32 # include "zend_config.w32.h" # define ZEND_PATHS_SEPARATOR ';'