Fix PHP_DEBUG condition in cgi SAPI (#14620)

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.
This commit is contained in:
Peter Kokot 2024-06-21 20:59:34 +02:00 committed by GitHub
parent f4ce50ddfb
commit 338be9dd9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1920,7 +1920,7 @@ consult the installation file that came with this distribution, or visit \n\
<a href=\"http://php.net/install.windows\">the manual page</a>.</p>\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.