Commit: f7bf83546e1f2edb71ad05bd33e01894a359fe02 Author: Xinchen Hui <larue...@gmail.com> Wed, 4 Apr 2012 16:35:32 +0800 Parents: 896c4539df4de06b4359bac9d0e6a397665e2024 Branches: PHP-5.3
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f7bf83546e1f2edb71ad05bd33e01894a359fe02 Log: Fix warning "suggest parentheses around assignment" Changed paths: M main/SAPI.c Diff: diff --git a/main/SAPI.c b/main/SAPI.c index 99142b4..e3284cf 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -618,7 +618,7 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) } else { /* new line safety check */ char *s = header_line; - while (s = strpbrk(s, "\n\r")) { + while ((s = strpbrk(s, "\n\r"))) { if (s[1] == ' ' || s[1] == '\t') { /* RFC 2616 allows new lines if followed by SP or HT */ s++; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php