Skip to content

Commit 334419e

Browse files
committed
zend test fix copy_file_range for musl.
normally should no longer need off64_t with glibc anyway.
1 parent f34721c commit 334419e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/zend_test/test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,9 +1128,9 @@ PHP_ZEND_TEST_API void bug_gh9090_void_int_char_var(int i, char *fmt, ...) {
11281128
/**
11291129
* This function allows us to simulate early return of copy_file_range by setting the limit_copy_file_range ini setting.
11301130
*/
1131-
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)
1131+
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)
11321132
{
1133-
ssize_t (*original_copy_file_range)(int, off64_t *, int, off64_t *, size_t, unsigned int) = dlsym(RTLD_NEXT, "copy_file_range");
1133+
ssize_t (*original_copy_file_range)(int, off_t *, int, off_t *, size_t, unsigned int) = dlsym(RTLD_NEXT, "copy_file_range");
11341134
if (ZT_G(limit_copy_file_range) >= Z_L(0)) {
11351135
len = ZT_G(limit_copy_file_range);
11361136
}

0 commit comments

Comments
 (0)