[php-src] PR #15320: Simplify document standalone setter
| From: | nielsdos | Date: | Fri, 09 Aug 2024 23:49:39 +0000 |
| Subject: | [php-src] PR #15320: Simplify document standalone setter | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27800@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15320
Author: nielsdos
The logic was very weird as it just should check whether the boolean is true or not. And in fact the
code is equivalent because zval_get_long() will only return 0/1 because the type is a bool, and
ZEND_NORMALIZE_BOOL won't change that value.