Commit c136801ddf4 for php.net
commit c136801ddf4e35bd017aca3c6a4664a93464f7ca
Author: Gina Peter Banyard <girgias@php.net>
Date: Mon Mar 9 16:48:03 2026 +0000
ext/opcache: formalize return type of do_validate_timestamps() to zend_result
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index bfd96fec0cc..2155e410ed9 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -1137,11 +1137,11 @@ accel_time_t zend_get_file_handle_timestamp(zend_file_handle *file_handle, size_
return statbuf.st_mtime;
}
-static inline int do_validate_timestamps(zend_persistent_script *persistent_script, zend_file_handle *file_handle)
+static inline zend_result do_validate_timestamps(zend_persistent_script *persistent_script, zend_file_handle *file_handle)
{
zend_file_handle ps_handle;
zend_string *full_path_ptr = NULL;
- int ret;
+ zend_result ret;
/** check that the persistent script is indeed the same file we cached
* (if part of the path is a symlink than it possible that the user will change it)