Skip to content

Commit 3ef2505

Browse files
committed
opcache: Use true / false instead of 1 / 0 for bool parameters
Changes done with Coccinelle: @r1@ identifier F; identifier p; typedef bool; parameter list [n1] PL1; parameter list [n2] PL2; @@ F(PL1, bool p, PL2) { ... } @r2@ identifier r1.F; expression list [r1.n1] EL1; expression list [r1.n2] EL2; @@ F(EL1, ( - 1 + true | - 0 + false ) , EL2)
1 parent 753f287 commit 3ef2505

File tree

4 files changed

+92
-89
lines changed

4 files changed

+92
-89
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3917,12 +3917,12 @@ void zend_jit_deactivate(void)
39173917
SHM_UNPROTECT();
39183918
zend_jit_unprotect();
39193919

3920-
zend_jit_check_funcs(EG(function_table), 0);
3920+
zend_jit_check_funcs(EG(function_table), false);
39213921
ZEND_HASH_MAP_REVERSE_FOREACH_PTR(EG(class_table), ce) {
39223922
if (ce->type == ZEND_INTERNAL_CLASS) {
39233923
break;
39243924
}
3925-
zend_jit_check_funcs(&ce->function_table, 1);
3925+
zend_jit_check_funcs(&ce->function_table, true);
39263926
} ZEND_HASH_FOREACH_END();
39273927

39283928
zend_jit_protect();

0 commit comments

Comments
 (0)