[php-src] Issue #8306: sapi/phpdbg/phpdbg.c:861: 2 * wrong operator ?
| From: | cmb69 | Date: | Thu, 07 Apr 2022 10:59:36 +0000 |
| Subject: | [php-src] Issue #8306: sapi/phpdbg/phpdbg.c:861: 2 * wrong operator ? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240736@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8306
Comment Author: cmb69
It seems to me the use of the bitwise operators is by design; using logical operators instead could
lead to short-circuit behavior, so that
stat may not be properly initialized. Still,
I'd change that code to do the statting upfront, and the use logical operators in the
if-clause.
cc @bwoebi