Commit b431c36e47f for php.net
commit b431c36e47ff1a8df985ab0f5e21b1d6b270fcd4
Author: Gina Peter Banyard <girgias@php.net>
Date: Mon Mar 9 16:55:08 2026 +0000
ext/opcache: formalize return type of check_persistent_script_access() to bool
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 2155e410ed9..0e2918cce77 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -1993,7 +1993,7 @@ static zend_op_array *file_cache_compile_file(zend_file_handle *file_handle, int
return op_array;
}
-static int check_persistent_script_access(zend_persistent_script *persistent_script)
+static bool check_persistent_script_access(zend_persistent_script *persistent_script)
{
char *phar_path, *ptr;
if ((ZSTR_LEN(persistent_script->script.filename)<sizeof("phar://.phar")) ||