summaryrefslogtreecommitdiff
path: root/ext/session
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-10-01 19:19:10 +0000
committerSascha Schumann <sas@php.net>2002-10-01 19:19:10 +0000
commit8b78c789735a748ac1e69274adf1bc983ed88434 (patch)
tree371d63f5bce5e5d785a0521f63c3dc0b8c23a9ec /ext/session
parent856cd5e17a368b5747130afe3e77fc4b2a5e6b4d (diff)
downloadphp-git-8b78c789735a748ac1e69274adf1bc983ed88434.tar.gz
Disable pread/pwrite for now until we can clarify why it should be
impossible to write a check for a broken OS feature.
Diffstat (limited to 'ext/session')
-rw-r--r--ext/session/mod_files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 82727d3da1..1a784e8b1e 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -271,7 +271,7 @@ PS_READ_FUNC(files)
data->st_size = *vallen = sbuf.st_size;
*val = emalloc(sbuf.st_size);
-#ifdef HAVE_PREAD
+#if defined(HAVE_WORKING_PREAD_TEST) && defined(HAVE_PREAD)
n = pread(data->fd, *val, sbuf.st_size, 0);
#else
lseek(data->fd, 0, SEEK_SET);
@@ -307,7 +307,7 @@ PS_WRITE_FUNC(files)
if (vallen < (int)data->st_size)
ftruncate(data->fd, 0);
-#ifdef HAVE_PWRITE
+#if defined(HAVE_WORKING_PWRITE_TEST) && defined(HAVE_PWRITE)
n = pwrite(data->fd, val, vallen, 0);
#else
lseek(data->fd, 0, SEEK_SET);