1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/opcache: use RETURN_BOOL() instead of if/else

This commit is contained in:
Gina Peter Banyard
2025-10-03 15:27:49 +01:00
parent 20a44af376
commit e0a82b53d4

View File

@@ -946,11 +946,7 @@ ZEND_FUNCTION(opcache_invalidate)
RETURN_FALSE;
}
if (zend_accel_invalidate(script_name, force) == SUCCESS) {
RETURN_TRUE;
} else {
RETURN_FALSE;
}
RETURN_BOOL(zend_accel_invalidate(script_name, force) == SUCCESS);
}
/* {{{ Prevents JIT on function. Call it before the first invocation of the given function. */