Commit 8af4e809689 for php.net

commit 8af4e8096895b1412a39f86eedb8c48057fdc1dc
Author: Gina Peter Banyard <girgias@php.net>
Date:   Mon Mar 9 16:43:50 2026 +0000

    ext/opcache: formalize return type of accel_restart_is_active() to bool

diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 0c6e405d041..00ea60cb53e 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -312,7 +312,7 @@ static inline void accel_restart_leave(void)
 #endif
 }

-static inline int accel_restart_is_active(void)
+static inline bool accel_restart_is_active(void)
 {
 	if (ZCSG(restart_in_progress)) {
 #ifndef ZEND_WIN32
@@ -325,19 +325,19 @@ static inline int accel_restart_is_active(void)

 		if (fcntl(lock_file, F_GETLK, &restart_check) == -1) {
 			zend_accel_error(ACCEL_LOG_DEBUG, "RestartC:  %s (%d)", strerror(errno), errno);
-			return FAILURE;
+			return true;
 		}
 		if (restart_check.l_type == F_UNLCK) {
 			ZCSG(restart_in_progress) = false;
-			return 0;
+			return false;
 		} else {
-			return 1;
+			return true;
 		}
 #else
 		return LOCKVAL(restart_in) != 0;
 #endif
 	}
-	return 0;
+	return false;
 }

 /* Creates a read lock for SHM access */