[php-src] PR #21649: zend_compile: Use `return true` / `return false` for functions returning `bool`
| From: | TimWolla | Date: | Mon, 06 Apr 2026 13:00:49 +0000 |
| Subject: | [php-src] PR #21649: zend_compile: Use `return true` / `return false` for functions returning `bool` | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35571@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21649
Author: TimWolla
Changes done with Coccinelle:
@r1 exists@
identifier fn;
typedef bool;
symbol false;
symbol true;
@@
bool fn ( ... )
{
...
return
(
- 0
+ false
|
- 1
+ true
)
;
}