[php-src] master: Fix build warning

From: Date: Tue, 27 Apr 2021 08:11:24 +0000
Subject: [php-src] master: Fix build warning
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115859@lists.php.net to get a copy of this message
Author: Nikita Popov (nikic) Date: 2021-04-27T10:10:22+02:00 Commit: https://github.com/php/php-src/commit/310c0561a9e5ec9a0414654cc96fb2b3c7e1abc7 Raw diff: https://github.com/php/php-src/commit/310c0561a9e5ec9a0414654cc96fb2b3c7e1abc7.diff Fix build warning This causes the build to fail on PHP-8.0 and higher. Changed paths: M ext/imap/php_imap.c Diff: diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 6a822ba1687c..8e6a3cc77b35 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3560,7 +3560,7 @@ static zend_bool header_injection(zend_string *str, zend_bool adrlist) /* adrlists do not support folding, but swallow trailing line breaks */ && !((adrlist && p[1] == '\0') /* other headers support folding */ - || !adrlist && (p[1] == ' ' || p[1] == '\t'))) { + || (!adrlist && (p[1] == ' ' || p[1] == '\t')))) { return 1; } p++;

« previous php.cvs (#115859) next »