[php-src] PHP-8.3: Merge branch 'PHP-8.2' into PHP-8.3
| From: | David Carlier | Date: | Thu, 14 Mar 2024 19:13:56 +0000 |
| Subject: | [php-src] PHP-8.3: Merge branch 'PHP-8.2' into PHP-8.3 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127733@lists.php.net to get a copy of this message | ||
Author: David Carlier (devnexen)
Date: 2024-03-14T18:59:44Z
Commit: https://github.com/php/php-src/commit/c24f621f57d29d24130856f6d2daa2fef19356d0
Raw diff: https://github.com/php/php-src/commit/c24f621f57d29d24130856f6d2daa2fef19356d0.diff
Merge branch 'PHP-8.2' into PHP-8.3
Changed paths:
M ext/zend_test/test.c
Diff:
diff --git a/ext/zend_test/test.c b/ext/zend_test/test.c
index c27f46360e4f..1dbefe5c687e 100644
--- a/ext/zend_test/test.c
+++ b/ext/zend_test/test.c
@@ -1365,9 +1365,12 @@ PHP_ZEND_TEST_API int gh11934b_ffi_var_test_cdata;
/**
* This function allows us to simulate early return of copy_file_range by setting the
limit_copy_file_range ini setting.
*/
-PHP_ZEND_TEST_API ssize_t copy_file_range(int fd_in, off_t *off_in, int fd_out, off_t *off_out,
size_t len, unsigned int flags)
+#ifdef __MUSL__
+typedef off_t off64_t;
+#endif
+PHP_ZEND_TEST_API ssize_t copy_file_range(int fd_in, off64_t *off_in, int fd_out, off64_t *off_out,
size_t len, unsigned int flags)
{
- ssize_t (*original_copy_file_range)(int, off_t *, int, off_t *, size_t, unsigned int) =
dlsym(RTLD_NEXT, "copy_file_range");
+ ssize_t (*original_copy_file_range)(int, off64_t *, int, off64_t *, size_t, unsigned int) =
dlsym(RTLD_NEXT, "copy_file_range");
if (ZT_G(limit_copy_file_range) >= Z_L(0)) {
len = ZT_G(limit_copy_file_range);
}