mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.2' into PHP-8.3
This commit is contained in:
commit
c24f621f57
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue