mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
pcre: Use true / false instead of 1 / 0 when assigning to bool
Changes done with Coccinelle:
@@
bool b;
@@
- b = 0
+ b = false
@@
bool b;
@@
- b = 1
+ b = true
This commit is contained in:
committed by
Tim Düsterhus
parent
2ab04924aa
commit
a1e1fa3ef8
@@ -1687,10 +1687,10 @@ matched:
|
||||
walk = ZSTR_VAL(replace_str);
|
||||
replace_end = walk + ZSTR_LEN(replace_str);
|
||||
walk_last = 0;
|
||||
simple_string = 1;
|
||||
simple_string = true;
|
||||
while (walk < replace_end) {
|
||||
if ('\\' == *walk || '$' == *walk) {
|
||||
simple_string = 0;
|
||||
simple_string = false;
|
||||
if (walk_last == '\\') {
|
||||
walk++;
|
||||
walk_last = 0;
|
||||
|
||||
Reference in New Issue
Block a user