From ba491aef260c5887949e634f47e1f1c0445c9a56 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 21 Jun 2024 14:38:01 +0200 Subject: [PATCH] Fix PHP_DEBUG condition in cgi SAPI PHP_DEBUG is always defined, either to 0 or 1. This matches the fpm_main.c code with similar check even though it was not executed for a while. --- sapi/cgi/cgi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index ab4790ef33bca..af5d15f23b7ca 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1920,7 +1920,7 @@ consult the installation file that came with this distribution, or visit \n\ the manual page.

\n"); } zend_catch { } zend_end_try(); -#if defined(ZTS) && !defined(PHP_DEBUG) +#if defined(ZTS) && !PHP_DEBUG /* XXX we're crashing here in msvc6 debug builds at * php_message_handler_for_zend:839 because * SG(request_info).path_translated is an invalid pointer.