Skip to content

ext/session: use pread()/pwrite() unconditionally on non-Windows - #25664

Open
jorgsowa wants to merge 1 commit into
php:masterfrom
jorgsowa:session-drop-pread-pwrite-checks
Open

jorgsowa wants to merge 1 commit into
php:masterfrom
jorgsowa:session-drop-pread-pwrite-checks

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

The PHP_PREAD_TEST and PHP_PWRITE_TEST configure checks work around a glibc bug fixed in 2.2.5 and missing off64_t prototypes. Both functions are POSIX, so remove the checks.

The checks have to execute a test program, which is not possible when cross-compiling, so cross-compiled builds never used pread()/pwrite().

The PHP_PREAD_TEST and PHP_PWRITE_TEST configure checks work around a
glibc bug fixed in 2.2.5 and missing off64_t prototypes. Both functions
are POSIX, so remove the checks.

The checks have to execute a test program, which is not possible when
cross-compiling, so cross-compiled builds never used pread()/pwrite().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant