Skip to content

Commit 338be9d

Browse files
authored
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.
1 parent f4ce50d commit 338be9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/cgi/cgi_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ consult the installation file that came with this distribution, or visit \n\
19201920
<a href=\"http://php.net/install.windows\">the manual page</a>.</p>\n");
19211921
} zend_catch {
19221922
} zend_end_try();
1923-
#if defined(ZTS) && !defined(PHP_DEBUG)
1923+
#if defined(ZTS) && !PHP_DEBUG
19241924
/* XXX we're crashing here in msvc6 debug builds at
19251925
* php_message_handler_for_zend:839 because
19261926
* SG(request_info).path_translated is an invalid pointer.

0 commit comments

Comments
 (0)