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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user